Edit report at https://bugs.php.net/bug.php?id=53556&edit=1

 ID:               53556
 Updated by:       [email protected]
 Reported by:      michael dot moench at marktjagd dot de
 Summary:          cURL returns wrong Content-Length after a redirect to
                   a page without CL-header
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          HTTP related
 Operating System: Ubuntu 10.04
 PHP Version:      5.3SVN-2010-12-16 (SVN)

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2010-12-21 23:02:39] [email protected]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------
[2010-12-16 18:24:03] [email protected]

This looks like a problem upstream.

------------------------------------------------------------------------
[2010-12-16 13:27:22] michael dot moench at marktjagd dot de

Description:
------------
I have an URL which will redirect me to a second, final URL. The first response 
contains a Content-Length-Header, the second does not. If I set the 
CURLOPT_FOLLOWLOCATION option, I would expect that the 
"download_content_length"-field from curl_getinfo contains the Content-Length 
of the final URL, in this case 0, but it contains the Content-Length of the 
first Response.

The first Response:

HTTP/1.1 302 Found
Date: Thu, 16 Dec 2010 11:39:31 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Location: http://productdata.download.affili.net/xxx
Set-Cookie: ASP.NET_SessionId=xxx; path=/; HttpOnly
Cache-Control: private
Content-Type: text/html; charset=Windows-1252
Content-Length: 214

The Second Response:

HTTP/1.1 200 OK
Date: Thu, 16 Dec 2010 11:39:32 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Content-Disposition: attachment; filename=xxx.gz
Transfer-Encoding: chunked
Cache-Control: private
Content-Type: application/gzip




------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=53556&edit=1

Reply via email to