cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Redirect from POST to GET

From: Alexander Henket <ahenket_at_xs4all.nl>
Date: Tue, 3 Mar 2015 09:47:32 +0100

Yes. Is there another way to do the initial POST?

The command for initial upload:

curl -v -L -X POST -F file=@bundletest.xml http://${user}:${pass}@${base}/ValueSet

> Op 1 mrt. 2015, om 23:18 heeft Daniel Stenberg <daniel_at_haxx.se> het volgende geschreven:
>
> On Fri, 27 Feb 2015, Alexander Henket wrote:
>
>> When I receive an HTTP 302 or 303 after a POST, curl detects that and actually says it's going from POST to GET, but subsequently does a POST anyway. This post (http://curl.haxx.se/mail/archive-2001-01/0115.html) from 2001 says curl should be good, but isn't currently, or so it seems.
>
> Using -X then I presume?
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-03