Babiker
Babiker

Reputation: 18818

How to get form data from HTML page using c++

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

EDIT: CGI is using apache 2 on windows, I got c++ configured and tested with with apache already.

Upvotes: 0

Views: 2838

Answers (3)

Artyom
Artyom

Reputation: 31281

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

Upvotes: 1

anon
anon

Reputation:

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.

Upvotes: 3

the_drow
the_drow

Reputation: 19201

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.

Upvotes: 2

Related Questions