cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl and HTTP 307 re-directs

From: Apurva Mehta <apurva_at_mathmeth.com>
Date: Thu, 14 May 2009 14:43:08 -0700

More generally, is it possible for a custom read callback to detect
when it is being called for a re-attempted transfer?

Thanks,
Apurva

On Thu, May 14, 2009 at 2:38 PM, Apurva Mehta <apurva_at_mathmeth.com> wrote:
> Hello, I am curious about the way libcurl handles 307 Temporary
> Redirects from a webserver during an HTTP PUT. I have noticed that if
> I specify a FILE* as an argument to CURLOPT_READDATA, the contents
> of the file are not being sent on the redirect attempts. Are there
> some special settings I need to set for the file contents to be
> re-sent on subsequent attempts?
>
> Thanks,
> Apurva
>
Received on 2009-05-14