chiefarcher
asked on
Post Vs. Get
I'm writing a cgi script and posts and gets to other cgi scripts.
I know the GET command does something like this:
blah.cgi?string=value&stri ng=value <--and so on
How does a POST work? I'm trying to manually type it in the same way and it doesn't work.. please help me.
I know the GET command does something like this:
blah.cgi?string=value&stri
How does a POST work? I'm trying to manually type it in the same way and it doesn't work.. please help me.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can't simply write it into the URL. Some servers support this (they don't really care if a request is GET or POST - they simply use both mechanisms to transfer data to the CGI script. Therefore, *sometimes* it works with a simple
http://whatever.com/blah.cgi?string=value
Ususally it doesn't, though.)
So if you want to call a CGI script with arguments you have to use a FORM with METHOD=POST.
http://whatever.com/blah.cgi?string=value
Ususally it doesn't, though.)
So if you want to call a CGI script with arguments you have to use a FORM with METHOD=POST.
ASKER
thanks pc... for my company, I'm releasing a "submit-it" type program.. The cool thing is the user only has to hit the "Submit" button one time. The only thing I'm having problems with is server's that have "post" set up rather than "get"
thanks..
thanks..
ASKER
would I do a
http://whatever.com?"string=value&string=value
or how would I type this?