cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl hangs after redirected HTTP PUT

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 30 Jul 2008 23:15:36 +0200 (CEST)

On Wed, 30 Jul 2008, Dan Fandrich wrote:

> I looked into this a bit and the problem is due to the PUT case not
> rewinding the file after a redirect. When it comes time to send the file
> the second time, the read callback returns end-of-file so libcurl has
> sends nothing. I'm not sure the best place to put that rewind in the code.

It does make me wonder if doing a POST with a read callback works with a
redirect like this... It feels like it won't!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-07-30