curl-library
Re: how to send POST request when follow location
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 13 Jul 2011 19:21:20 +0200 (CEST)
Date: Wed, 13 Jul 2011 19:21:20 +0200 (CEST)
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 Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-07-13