Reputation: 43
I am new to cgi
and have an cgi
C++
application to debug.
How can I set up the environment on my developer PC in order to debug in visual studio?
My app supports GET
and POST
method but I have no idea what to do to make it start up correctly.
The app is started through a link with some arguments like:
myApp.exe?mode=create&name=jack...
Any suggestions?
Thanks
juergen
Upvotes: 2
Views: 1113
Reputation: 5414
If your parameters are usually sent as part of the URL, then they should be found in the QUERY_STRING environment variable. You normally get this by calling get_env("QUERY_STRING")
.
Before running, try setting the environment variable QUERY_STRING to contain mode=create&name=jack
Upvotes: 3