cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problems with Post followed by No-Post

From: Stephane GRAZIANI <graziani_at_isoft.fr>
Date: Mon, 26 May 2003 17:45:34 +0200

Hi,

In my use of the easy interface of libcurl library 7.10.5, I encounter a
strange problem, which did not seem to appear with the 7.9.1 : when I do a
query with POST fields, and then perform another query without POST fields
using the same handle, I get a crash in fillbuffer, du e to the fact that
curl tries to do an upload using older POST informations and so calls the
Read callback, which I do not use while downloading and is thus set to NULL.

I checked almost everything in my parameters (I remove the
CURLOPT_POSTFIELDS option), and I do not understand how I can get the
previous value of POST parameters into conn->upload_fromhere in fillbuffer
(transfer.c).

Did somebody already encounter such a problem?

Thank-you in advance.

Stephane GRAZIANI

P.S. : I work on MSDEV on Win2k : Here is the stack state when it crashes

fillbuffer(connectdata * 0x03c54178, int 16384) line 140 + 37 bytes
Curl_readwrite(connectdata * 0x03c54178, unsigned char * 0x0b7cfe38) line
992 + 14 bytes
Transfer(connectdata * 0x03c54178) line 1329 + 13 bytes
Curl_perform(SessionHandle * 0x03c4b070) line 1668 + 9 bytes
curl_easy_perform(void * 0x03c4b070) line 248 + 9 bytes
_ISReadFromTheNet(void * 0x03c2f978) line 876 + 12 bytes
_AfxThreadEntry(void * 0x0032d510) line 112 + 13 bytes
_threadstartex(void * 0x03c237f0) line 212 + 13 bytes
KERNEL32! 77e8b2d8()

-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
Received on 2003-05-26