curl-library
Re: how to send POST request when follow location
Date: Thu, 14 Jul 2011 13:48:25 +0800
Em, I am using curl as a static lib in windows platform.
And, in another piece of code, also with static curl lib, I set
CURLOPT_WRITEFUNCTION and CURLOPT_WRITEDATA , and succeed to download data
from ftp server.
But, I have already set CURLOPT_WRITEFUNCTION and CURLOPT_WRITEDATA in this
case, which result to be an exception.
You said " much more specific information",would you please give more
detail.Thanks.
2011/7/14 Daniel Stenberg <daniel_at_haxx.se>
> On Wed, 13 Jul 2011, xinyi huang wrote:
>
> when I don't give CURLOPT_WRITEFUNCTION and CURLOPT_WRITEDATA, the code
>> works fine, successfully locate to new url. But when I give
>> CURLOPT_WRITEFUNCTION and CURLOPT_WRITEDATA, virtual studio accurs to
>> exception.
>>
>
> (Please don't top-post)
>
> When usign Windows and libcurl as a DLL, make sure you set _both_
> CURLOPT_WRITEFUNCTION and CURLOPT_WRITEDATA. Then things should be fine.
> Unless, you need to provide much more specific information.
>
>
> --
>
> / daniel.haxx.se
> ------------------------------**------------------------------**-------
> List admin: http://cool.haxx.se/list/**listinfo/curl-library<http://cool.haxx.se/list/listinfo/curl-library>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-07-14