I'm working on a program in visual c++ that I need some help on. I'm new to c++ and I can't seem to figure out how to do a http POST.

The program gets a username and password from a form, and then it's supposed to send the username and password to a webserver and retrieve the results in a string.

Any examples or good tutorials would be amazing. Thanks!

I'm assuming you're using a CLR/Winforms setup.

If so, see http://www.codeproject.com/KB/IP/httpwebrequest_response.aspx for a good example (the example's in C#, so you'll have to convert the syntax, subbing :: for the C# . that indicates namespace resolution and -> for the . that indicates member variable).

HttpWebRequest is the class that is responsible for this type of action in .NET, so searching on that will get you some more resources (and of course MSDN has all of the member methods and variables delineated).

Thanks for the post :)

Is there perhaps a simpler sample? I really just need a very stripped down version so that I can catch the concept and build on it.