Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass parameters to a cgi program
Message
From
13/12/2000 07:52:46
 
 
To
All
General information
Forum:
Visual C++
Category:
Coding, syntax & commands
Title:
How to pass parameters to a cgi program
Miscellaneous
Thread ID:
00452803
Message ID:
00452803
Views:
98
Does anybody known how to pass arguments to a cgi program written in C.
argv and argc don't seem to work when arguments are passed through a URL

when I enter the url like this:

http://localhost/cgi-bin/test.exe?one&two&three

argv[0]=...../test.exe
argv[1]=one
argv[2]=two
argv[3]=three

The next URL only shows argv[0], the other params are lost.

http://localhost/cgi-bin/test.exe?one=1&two=2&three=3

Can somebody tell me how to solve this problem ?

thanks,
Hennie
============================================================
'C' is shorthand for Confusion, 'C++' much more confusion...
Next
Reply
Map
View

Click here to load this message in the networking platform