From:             doc+phpbugs at skynet dot ie
Operating system: ubuntu linux
PHP version:      5.2.5
PHP Bug Type:     Session related
Bug description:  sessions calling causes timeout and failed response in 
simplexml and curl

Description:
------------
When I pass a parameter of session_name()=session_id() in a url or as a
header and use curl  or simplexml the connection times out. I get the
following response from simplexml_load_file($url).

failed to open stream: HTTP request failed!

However, when I connect to the same url with curl on the commandline I get
the expected response immediately.



Reproduce code:
---------------
echo $data_source_url =
DATAURL.'?bget=1&'.session_name().'='.session_id().'&basket_id='.clean_from_db($basket_id);
$basket_details = simplexml_load_file($data_source_url);

I also get the same when I use:
$ch=curl_init();
echo $this->URL.$this->XMLRequest.'?'.$urlstring;
curl_setopt($ch,
CURLOPT_URL,$this->URL.$this->XMLRequest.'?'.$urlstring);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);

or pass it as a more standard CURLOPT_HTTPHEADER to curl_setopt.

Expected result:
----------------
To retrieve xml from the server.

Actual result:
--------------
The page is called which then attempts to connect to the data url, that
stalls for some time then calls the server correctly then the script
eventually times out.

I've used wireshark on the machine and it's calling the url correctly and
getting the expected response, as I can see the xml being passed back, but
somewhere between then and actually returning, it stalls and times out.

-- 
Edit bug report at http://bugs.php.net/?id=44134&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=44134&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44134&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44134&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44134&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44134&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44134&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44134&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44134&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44134&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44134&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44134&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44134&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44134&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44134&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=44134&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=44134&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44134&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44134&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44134&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44134&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44134&r=mysqlcfg

Reply via email to