cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Strange intermittent problems with libcurl. A new problem with 7.20.8 only

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 2 Dec 2003 22:56:02 +0100 (CET)

On Mon, 1 Dec 2003, Andreas Falco wrote:

> The original problem seems to be solved, but a new problem found with
> version 7.10.8
>
> I am almost sure I have found the cause to my intermittent errors thanks to
> the seemingly much better debug support in version 7.10.8. I am not
> completely sure because very rarely error #56 still occurs, but I think I
> can live with it.

Didn't you get error 56 before as well when this problem occurred?

> /* if we don't provide POSTFIELDSIZE, libcurl will strlen() by
> itself */
> curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(postthis));
>
> From the explanation in the comment I thought that I have to enter strlen()
> here. I changed it to include the ending zero
>
> curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(postthis)+1);
>
> and everything seems to be solved for 7.10.7!

If you need to send a trailing zero byte, then it makes sense. Otherwise I
don't think it does.

> But a new problem aroses with ver. 7.10.8. It does not post my data!

I've already corrected a bug in 7.10.8 that concerns POSTs over proxies when
using basic auth. If you get a recent daily tarball, I'm pretty confident that
you won't experience this problem anymore.

-- 
    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 OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
Received on 2003-12-02