Bug #60887 [Com]: SoapClient ignores user_agent option and sends no User-Agent header
| From: | mail at tomsommer dot dk | Date: | Wed, 25 Jan 2012 20:55:06 +0000 |
| Subject: | Bug #60887 [Com]: SoapClient ignores user_agent option and sends no User-Agent header | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-166794@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60887&edit=1
ID: 60887
Comment by: mail at tomsommer dot dk
Reported by: mail at tomsommer dot dk
Summary: SoapClient ignores user_agent option and sends no
User-Agent header
Status: Open
Type: Bug
Package: SOAP related
PHP Version: 5.3.9
Block user comment: N
Private report: N
New Comment:
The receiving server only receive the following headers:
GET / HTTP/1.1
Host: www.example.com
Connection: close
Checked with tcpdump
Previous Comments:
------------------------------------------------------------------------
[2012-01-25 20:45:55] mail at tomsommer dot dk
Description:
------------
The SoapClient ignores the "user_agent" option, and sends no User-Agent at all.
Test script:
---------------
$client = new SoapClient('http://www.example.com/',
array('user_agent' => 'foo'));
Expected result:
----------------
User-Agent header on the remote server
Actual result:
--------------
No User-Agent header on the remote server
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60887&edit=1