curl-library
Re: HTTP/1.1 response using libcurl handle
Date: Thu, 1 Nov 2012 10:26:56 +0800
I am using libcurl for client only but in application there is need if
server wants to start communication by requesting to the client using GET.
so i just want to send HTTP1.1 200 OK header with no data and then normal
client side communication will happen.
For this one response only, including complete server library seems to be
not good choice for my embedded apps.
On Thu, Nov 1, 2012 at 8:37 AM, Guenter <lists_at_gknw.net> wrote:
> Am 31.10.2012 12:27, schrieb Yehezkel Horowitz:
>
> my intention is to respond to the connection request from server....for
>>> that i need to send HTTP1.1 200 OK empty packet to server.
>>>
>>
>> quoting libcurl's home page (at http://curl.haxx.se/libcurl/):
>> "libcurl is a free and easy-to-use ***client-side*** URL transfer
>> library."
>>
>> You can't use it for the ***server-side*** of the transfer.
>>
>> You have lots of other projects to use for the ***server-side*** (listen
>> to sockets and answer requests).
>> The most famous is Apache's httpd project (but there are many other
>> projects, and you should pick the one that will best answer your
>> requirements).
>>
> exactly - and for a start take a look at APR which is the underlaying lib
> Apache httpd depends on:
> http://apr.apache.org/
> that should give you the APIs you need ...
>
> Gün.
>
>
>
> ------------------------------**------------------------------**-------
> 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>
>
-- *Best Regards Jalindar Taipei,Taiwan. Phone: +8860970698242 *
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-01