cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

Re: [cURLpp] HTTP POST and WriteCallback

From: Nazario Cipriani <NazarioCipriani_at_web.de>
Date: Tue, 30 Aug 2005 12:05:01 +0200

Jean-Philippe Barrette-LaPierre wrote:
> On July 28, 2005 11:31 am, Nazario Cipriani wrote:
>
>>There is a strange problem I encountered with the WriteCallback.
>>The class I'm using looks like this (as posted in my previous mail, I
>>put it here for better understanding):
>
>
> Can shoot me a complete example and a procedure that will cause the problem?
>
Ok...
Sorry for the time taken but I'm very busy...

So here is a complete example. It's not perfect, but contains the
essential parts to check the error.

I've checked if any result comes along from the host (with etherreal).
And yes, there is one! But the App throws an Exception...

There are 2 versions. A debug version (done with the debug profile in
Visual Studio) and a release version (done with the release profile in
Visual Studio). They behave not the same way.
With the debug version, the data pointer in the Writercallback function
is damaged.
The release version tries to send the data more than one time, althought
a result have already been received. Then tells the connection was aborted.

Please share your experience with it. Perhaps it is not and
I'm using it in the wrong way?

Use the program in the following way:

        - Set mode to POST (case sensitive)
        - Set the host adress to send the request
        - Click "Open AWQL" and select what to send to host
        - Click "Send request to server" and watch "Logging Area"

Thanks in advice!
Regards, Nazario.

P.S.: Sorry if the package is about 3 MEGs...

-- 
Spanne den Bogen, aber schieße nicht los!
Noch gefürchtet zu sein ist wirksamer!
(altes chinesisches Sprichwort)


_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp

Received on 2005-08-30

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET