Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass parameters to a cgi program
Message
De
13/12/2000 07:52:46
 
 
À
Tous
Information générale
Forum:
Visual C++
Catégorie:
Codage, syntaxe et commandes
Titre:
How to pass parameters to a cgi program
Divers
Thread ID:
00452803
Message ID:
00452803
Vues:
99
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...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform