tags:

views:

292

answers:

3

I'd like to send HTTP POST request to website and retrieve the resultant page using winapi. How can I do that?

Thanks i advance.

A: 

You'll need to use Winsock (basically the Windows version of Berkeley sockets), create & send the HTTP request and receive & parse the response.

Matthew Iselin
+3  A: 

The MSDN docs have sample code using WinHTTP:

ars
+2  A: 

Also consider using something like Libwww or libcurl.

thedz