cURL / Mailing Lists / curl-library / Single Mail

curl-library

my main problem...

From: ChristinaPSU <mail_at_drsdatarecovery.com>
Date: Fri, 23 Jan 2009 11:01:03 -0500

Hello everyone,

I am trying to use libcurl to communicate with a HTTP server. My POST code seems to work fine, but they send back an XML ack message and I am not sure how to receive it. Someone recommended the write_data callback, but I did that, and all it got was this:

HTTP/1.1 100 Continue HTTP/1.1 100 Continue HTTP/1.1 200 OK Date: Fri, 23 Jan 2009 14:18:17 GMT Server: Apache-Coyote/1.1 Content-Type: text/xml Content-Length: 0

How can I catch their XML reply message? Someone also recommended that I use curl_easy_recv(), but when I add that to my code and try to compile I get this linking error:

1>libcurlWrapper.lib(CurlWrapper.obj) : error LNK2019: unresolved external symbol __imp__curl_easy_recv referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall CurlWrapper::RecieveReply(void)" (?RecieveReply_at_CurlWrapper@@QAE?AV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@XZ)

Can anyone please help me with this?

Thanks!
Received on 2009-01-23