cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl not returning all data

From: Andrew Ingram <andrew_at_uk.clara.net>
Date: Thu, 11 Dec 2003 12:35:34 +0000

On Thu, 2003-12-11 at 09:31, Daniel Stenberg wrote:
> On Thu, 11 Dec 2003, Andrew Ingram wrote:
>
> > Just an further update, I added the same agent string that curl uses to my
> > libcurl program. No difference, still I'm missing some data. So that
> > eliminates the agent string. I'm concerned about the content length
> > difference, that doesn't sound too good at all.
>
> Then proceed and use the --trace option and the DEBUGFUNCTION option to get
> full traces of both transfers, and then compare why they differ this much in
> size.
>
> Also, you could show us what command line options you use and your associated
> libcurl options, and we could possibly point out any deviations.

Daniel,

thanks for the pointer on getting extra information out of libcurl and
curl. This has helped me track the problem down. The problem I had was
actually in my code with the formadd function. I was sending the
filename, but not the contents of the file. This created a malformed
request which the other end did not appreciate! Thank you very much for
all your help on this, you have been excellent.

Regards,
Andrew

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-11