tags:

views:

62

answers:

2

Hi,

Can you please tell me if there is any library which format HTTP response? And I can use that with a raw socket?

Thank you.

+2  A: 

CURL/LIBCURL is a very good and widely used C/C++ library to handle HTTP. Don't know if you can use it with a raw socket though. Probably, yes.

Pablo Santa Cruz
Thanks. I just need a library to build/format HTTP response and send the result via a raw socket.
hap497
@Pablo:I'd bet he just means he's not using any other library as a front-end for the socket, not that the socket itself is in raw mode.
Jerry Coffin
A: 

You can write you client part of HTTP client with respect of WinINet API. Look at the list of function which you has: http://msdn.microsoft.com/en-us/library/aa385473%28VS.85%29.aspx or read more in http://msdn.microsoft.com/en-us/library/aa383630%28v=VS.85%29.aspx. The WinINet interface is old, but it has most things which one needs in different situations.

Oleg