cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how to send POST request when follow location

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 14 Jul 2011 12:11:41 +0200 (CEST)

On Thu, 14 Jul 2011, xinyi huang wrote:

> 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.

Okay, but if you don't stop top-posting you won't see more replies from me.
Please respect our etiquette here.

What libcurl version are you using? What exactly does the exception mean? Like
is your callback actually ever called? If you build one of the examples that
uses a write callback, would that cause an exception as well?

This is functionality that is known to work and has worked for a decade so I
am convinced this problem is due to something in your environment, setup or
source code. We just need to figure out what!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-07-14