0

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.

1
  • In which settings? CGI? WSGI? FCGI? Apache, IIS? Do give us a hint. Commented May 10, 2009 at 8:17

3 Answers 3

3

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.

Sign up to request clarification or add additional context in comments.

Comments

2

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.

Comments

1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.