cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl and HTTP 307 re-directs

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 16 May 2009 22:17:07 +0200 (CEST)

On Thu, 14 May 2009, Apurva Mehta 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?

CURLOPT_SEEKFUNCTION is your friend!

-- 
  / daniel.haxx.se
Received on 2009-05-16