From:             kulakov74 at yandex dot ru
Operating system: Linux
PHP version:      5.2.9
PHP Bug Type:     cURL related
Bug description:  Addition to bug #45533

Description:
------------
Sorry, this is not a bug in itself but an addition to the bug 45533
because it was closed and I can't add it there. You can move the message to
http://bugs.php.net/bug.php?id=45533. 

I reconfirm the issue with PHP 5.2.6
cURL Information  libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

To make it short here is some output from CURL: 

HTTP/1.1 302 Moved Temporarily
Date: Tue, 26 May 2009 07:55:51 GMT
Location: ...
...

<HTML>
...
</HTML>                         <----------here is the problem!!!
HTTP/1.1 200 OK
Set-Cookie: GoogleAccountsLocale_session=en
...
Server: GFE/2.0

<html><head><title>Redirecting</title>
...
<body ...</body></html>

Note how headers and bodies follow each other. Normally I get 2 (or more)
chunks of headers and only the last response as the body, but this time I
got a mixture. So it DOES depend on the server. In this case I log in to my
google account and then go to the gmail link with a PHP-script (don't ask
me why :) ).

I don't think I will go into the mess of reproducing this with the command
line curl, though it might be possible. 

Note that if I do not set the option CURLOPT_HEADER the problem still
remains, but I get 2 bodies merged without headers.

Reproduce code:
---------------
I can send or provide URL to the code, of course it's not trivial. 

Expected result:
----------------
See above.

Actual result:
--------------
See above.

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

Reply via email to