cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: File uploaded via libcurl DLL doesn't contain any data

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 20 Nov 2003 15:25:41 +0100 (CET)

On Thu, 20 Nov 2003, Pravin Jade wrote:

> This uploading of file works perfectly for curl.exe.
>
> But while using libcurl DLL ,uploaded file don't contain any data (size = 0
> bytes). Here library function curl_easy_perform (curl) returns CURLCODE as
> CURLE_OK.

[snip]

> Please help me in this regard. Does my servlet accepting PUT request require
> any modification for libcurl ? This servlet works for file uploaded using
> cURL EXE.

I have an idea on how to track this down:

1. use --trace when using the command line tool, to record the full transfer

2. use CURLOPT_DEBUGFUNCTION where you use libcurl, and make a similar trace
   dump to a file.

3. Compare the outputs. They should be very similar.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
 [[ Do not post private mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Received on 2003-11-20