cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Default (mis)behavior when doing POST and 301 or 302 returns

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 26 Jun 2008 14:24:33 +0200 (CEST)

On Thu, 26 Jun 2008, Martin Drasar wrote:

>>> I would like to ask if there was a way to change behavior of libcurl when
>>> POST request is redirected with 301 or 302. Current change from POST to
>>> GET can be very unwanted (in my application I am trying to comunicate with
>>> SOAP server and GET method is useless for me - I would rather see error
>>> message).
>>
>> CURLOPT_POST301 perhaps?
>>
>
> This would enable re-POST for 301, but not for 302. That's why I need either
> error message or something like CURLOPT_POST302 as well.

I see. Well I'll welcome patches!

-- 
  / daniel.haxx.se
Received on 2008-06-26

These mail archives are generated by hypermail.

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

File upload with ASP.NET