curl-library
Re: Re: Re: Does curl have problems when no content-length is specified (asp page on IIS4)
Date: Wed, 13 Dec 2000 10:31:48 -0500
I do not have access to the sourcecode now since iam on vacation
I will try to send you what i did once i get back
But i do not remember doing a major hack in libCurl for this.
I used the callback function that we set in the curleasysetopt.I parse the headers within that and get the content-length and continue reading from there on till i receive the length specified in the header.Then i return -1 from the callback causing it to abort the transfer.Then in the curleasyperform i check if the transfer was aborted by me or for someother reason by checking the return type.
This aproach had one drawback.Since(technically) i break in the middle of the transfer (even though we have read everything)it did not give me the right statistics using easygetinfo.so i guess i did hack in the source of
library.But i do not remeber what i did.I guess you would have to wait till i get back
Regards
Bharath
Original Message:
-----------------
From: Daniel Stenberg daniel_at_haxx.se
Date: Wed, 13 Dec 2000 08:50:09 +0100 (MET)
Subject: Re: Re: Does curl have problems when no content-length is specified
(asp page on IIS4)
On Tue, 12 Dec 2000, rnet_northtbharath_at_mail.responsenetworks.com wrote:
> I had a problem when i was connecting through a proxy.It used to hang
> till the connection timedout.I found a solution --to disconnect once i
> read the number of bytes specified in the content-length header.
So you hacked your libcurl to do this? If so, could you make it an optional
feature and send me a patch?
-- Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/ _______________________________________________ Curl-library mailing list Curl-library_at_lists.sourceforge.net http://lists.sourceforge.net/mailman/listinfo/curl-library ------------------------------------------------------------------- This message has been posted from Mail2Web http://www.mail2web.com/ Web Hosting for $9.95 per month! Visit: http://www.yourhosting.com/ ------------------------------------------------------------------- _______________________________________________ Curl-library mailing list Curl-library_at_lists.sourceforge.net http://lists.sourceforge.net/mailman/listinfo/curl-libraryReceived on 2000-12-13