Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.14.0

Bug #13335 Missing port when sending request in SOAP_Transport_HTTP
Submitted: 2008-03-07 15:40 UTC
From: gbrugiere Assigned:
Status: Duplicate Package: SOAP (version 0.11.0)
PHP Version: 4.3.10 OS: windows XP
Roadmaps: (Not assigned)    
Subscription  


 [2008-03-07 15:40 UTC] gbrugiere (Géraud Brugière)
Description: ------------ Hi, As a French newbie, please excuse me if this is the wrong place for this info. I had a problem accessing a web service located on a TCP port different than 80. After many searches and tracking, I've found the place where the problem occured and, as I think it was a bug, I propose a code for solving. it's located in _getRequest (file /SOAP/Transport/HTTP.php) // -------------------start buggy line--------------------- $this->headers['Host'] = $this->urlparts['host']; // -------------------end buggy line--------------------- // -------------------start correction--------------------- if ($this->urlparts['port']== false || $this->urlparts['port']=="") $this->headers['Host'] = $this->urlparts['host']; else $this->headers['Host'] = $this->urlparts['host'].":".$this->urlparts['port']; // -------------------end correction--------------------- Test script: --------------- Try an access to a web service on port 10043 Expected result: ---------------- Working service ! Actual result: -------------- get a 404 error

Comments

 [2008-07-12 17:38 UTC] doconnor (Daniel O'Connor)
Géraud, is there any chance you can provide a short test to reproduce this? This sounds like Bug #12977 If you take a look at http://pear.php.net/bugs/patch-display.php?bug=12977&patch=bug-12977.phpt&revision=latest ; that might give you a bit of guidance.
 [2008-07-19 09:38 UTC] doconnor (Daniel O'Connor)
Marked as a dupe of Bug #12977