Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Feature Requests-1799768 ] Need an option to disable the POST > GET conversion on a 301

From: <>
Date: Wed, 26 Sep 2007 05:27:19 -0700

Feature Requests item #1799768, was opened at 2007-09-21 18:53
Message generated for change (Comment added) made by bagder
You can respond by visiting:

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: libcurl
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Philip Langdale (philipl)
Assigned to: Daniel Stenberg (bagder)
Summary: Need an option to disable the POST > GET conversion on a 301

Initial Comment:
Right now, libcurl will unconditionally converts POSTs to GETs when following a 301 redirection.

Unfortunately, my current work requires me to deal with a server that only accepts POSTs but will issue a 301 to redirect from regular to ssl traffic.

I have written the attached patch to make the conversion optional (and on by default) and I'm using it in my local copy of libcurl. But I hope it can be accepted upstream.



>Comment By: Daniel Stenberg (bagder)
Date: 2007-09-26 14:27

Logged In: YES
Originator: NO

Thanks, patching is going in really soon now...


Comment By: Daniel Stenberg (bagder)
Date: 2007-09-21 22:30

Logged In: YES
Originator: NO

Moving this to feature-requests as it isn't strictly a bug.

Please take patches and discussions around new patches to the mailing list
as the docs/CONTRIBUTE says (

This was already being discussed on curl-library recently but the subject
died since nobody responded. You can bring it back to life again!


You can respond by visiting:
Received on 2007-09-26

These mail archives are generated by hypermail.

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

File upload with ASP.NET