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.
-
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 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.
-
You may use CgiCC library that gives you want you are looking for. You may also try some C++ web framework like CppCMS.
0 comments:
Post a Comment