cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-3000056 ] curl doesn't ignore response body of certain 302 redirects

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 14 May 2010 20:13:37 +0000

Bugs item #3000056, was opened at 2010-05-11 18:19
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3000056&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: http
Group: bad behaviour
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Sebastian V. (seb101)
Assigned to: Daniel Stenberg (bagder)
Summary: curl doesn't ignore response body of certain 302 redirects

Initial Comment:
The server produces a perfectly valid gezipped and chunked 302-answer followed by a 200-answer. When fetching the resource with 'curl --location --compressed ...' I would expect to get the body of the 200 answer. But in the following case, curl also outputs the body of the 302 response.

Reproducible with the following line:

~/curl-7.20.2-20100511)> src/curl -v --location --compressed 'http://service.mediamarkt.nl/?a=ticket_faq&ticketcatid=2001'

The backend produces a gezipped and chunked 302-answer followed by a 200-answer. The output contains both response bodys.

Reproducible with snapshot curl-7.20.2-20100511 and latest 7.20.1.

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

Comment By: Daniel Stenberg (bagder)
Date: 2010-05-14 22:13

Message:
Thanks for the report, this problem is now fixed in the git repository.

To try it out, you either checkout/update your git clone:
http://curl.haxx.se/source.html

or you try tomorrow's daily snapshot: http://curl.haxx.se/snapshots/

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3000056&group_id=976
Received on 2010-05-14

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET