php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67528 Default Pecl_http user agent string does not conform to RFC
Submitted: 2014-06-26 20:03 UTC Modified: 2014-07-09 18:33 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: martin at brightroll dot com Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: Irrelevant OS: irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: martin at brightroll dot com
New email:
PHP Version: OS:

 

 [2014-06-26 20:03 UTC] martin at brightroll dot com
Description:
------------
I ran into this while running a spray server:

spray.can.server.HttpServerConnection - Illegal request header: Illegal 'User-Agent' header: Invalid input ':', expected TokenChar, '/', OptWS, Comment, ProductVersionComment or EOI (line 1, pos 5):
PECL::HTTP/1.7.6 (PHP/5.3.10-1ubuntu3.7)

Discussion of similar issue
https://github.com/spray/spray/issues/458

User-Agent RFC
http://tools.ietf.org/html/rfc2616#section-14.43

Basically the :: in PECL::HTTP is not allowed according to spec.



Patches

user_agent_rfc_patch (last revision 2014-06-26 20:03 UTC by martin at brightroll dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-27 09:29 UTC] mike@php.net
-Status: Open +Status: Verified
 [2014-07-09 18:33 UTC] mike@php.net
-Assigned To: +Assigned To: mike
 [2014-07-09 18:34 UTC] mike@php.net
Automatic comment on behalf of mike
Revision: http://git.php.net/?p=pecl/http/pecl_http.git;a=commit;h=805287392b6266d05533043509367d7e411e595c
Log: rfc compliant user agent; fix bug #67528
 [2014-07-09 18:34 UTC] mike@php.net
-Status: Verified +Status: Closed
 [2014-07-10 11:13 UTC] mike@php.net
Automatic comment on behalf of mike
Revision: http://git.php.net/?p=pecl/http/pecl_http.git;a=commit;h=805287392b6266d05533043509367d7e411e595c
Log: rfc compliant user agent; fix bug #67528
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 14:01:27 2024 UTC