cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Regarding the problem I am getting in the HTTP PUT Request using libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 27 Mar 2008 16:03:57 +0100 (CET)

On Thu, 27 Mar 2008, Venkataragavan Vijayakumar, TLS-Chennai wrote:

> I am trying to use HTTP PUT in libcurl. The problem is I am not
> able to PUT anything into the server. The response I am getting for this is
> 100 Continue continuously, may be my call back function I had written is
> wrong ,and also while debugging the code ,I observed the callback is
> continuously called, I don't know why it is happening like this may be I am
> returning wrong thing in the callback.

#1 You don't set the size of the input file with CURLOPT_INFILESIZE

#2 libcurl will continue to call the read callback until it reaches the end of
    the input, which is signalled by the callback returning 0

Getting 100 continue "continously" does sound weird though and I have no
explanation to that.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-03-27