cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTPpost and response from server

From: Alexander Lazic <al-curllibrary_at_none.at>
Date: Sat, 21 Jan 2006 13:53:15 +0100

Hi,

On Sam 21.01.2006 11:42, Jacek Jablonski wrote:
>
>I want to post something to server, but than I have to read a response,
>not all webpage but only response. For example, when I send SMS through
>the sms gateway, the server sends me a response if it was successful or
>that I don't have credits. How can I read this response or save it to
>some structure?

How about the as 'template':

http://curl.haxx.se/lxr/source/docs/examples/getinmemory.c

or som other examples

http://curl.haxx.se/libcurl/c/example.html

I think the

CURLOPT_READFUNCTION
&&/||
CURLOPT_READDATA

fuctions from

http://curl.haxx.se/libcurl/c/curl_easy_setopt.html

can also help.

Hth && greetings

Alex
Received on 2006-01-21