php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60481 Can't send cookies when retrieving WSDL with SoapClient
Submitted: 2011-12-09 14:38 UTC Modified: 2021-02-12 15:55 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: jille at hexon dot cx Assigned: cmb (profile)
Status: Not a bug Package: SOAP related
PHP Version: 5.3.8 OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jille at hexon dot cx
New email:
PHP Version: OS:

 

 [2011-12-09 14:38 UTC] jille at hexon dot cx
Description:
------------
When you construct a SoapClient it immediatly fetches the WSDL, before you have the chance to set cookies. Our setup requires some cookie to be sent when fetching the WSDL which is currently impossible.

It should be possible to give cookies to the SoapClient constructor which should be sent along with the request for the WSDL.

Test script:
---------------
$soap = new SoapClient('http://webservice/wsdl', array('username' => 'x', 'password' => 'y'));
$soap->__setCookie('extra_thing', 'z');


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-09 14:50 UTC] jille at hexon dot cx
We could also add cookies to stream-contexts (proposed it in https://bugs.php.net/bug.php?id=60482)
 [2021-02-12 15:55 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2021-02-12 15:55 UTC] cmb@php.net
You can add cookies by using a stream context.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 12:01:31 2024 UTC