tags:

views:

209

answers:

3

How do i get form data from HTML page using c++ ,as far as the basics of post and get?

EIDT1: CGI using apache 2 on windows, i got c++ configured and tested with with apache already.

+2  A: 

First of all take a look at webtoolkit.
You might want to use that to make your life easier.
Second you can read about network protocols.
Third take a look at your webserver docs, they might provide such interface to create a deamon that will allow you to read the HTTP socket and the data that is sent over it.

On another note next time you write a question try to elaborate as much as possible.
Explain the use case and provide a test case.

the_drow
+3  A: 

The easiest way to access form data from an HTTP request is via CGI. This involves reading environment variables which is done using the getenv function.

anon
+1  A: 

You may use CgiCC library that gives you want you are looking for. You may also try some C++ web framework like CppCMS.

Artyom