cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: curl-library Digest, Vol 111, Issue 50

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 20 Nov 2014 10:20:05 +0100 (CET)

On Thu, 20 Nov 2014, Anton Kabakov wrote:

> I want to map the servers by used authentication method, so when accessing
> such a server next time it will be possible to configure CURL with needed
> auth. method. Currently I have an issue with POST requests - as CURL do not
> know if authentication is needed and what method to use it sends the POST
> with a body, and when HTTP 401 arrives the POST body is getting lost.

It shouldn't get lost. It needs to get rewound and sent again though, so if
you provide the POST data with a callback you also need to set a callback that
allows libcurl to inform you about the need to rewind (CURLOPT_SEEKFUNCTION).

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-11-20