By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,723 Members | 1,665 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,723 IT Pros & Developers. It's quick & easy.

need to send POST info from URL

P: n/a
Hi

I am trying to create links to my product pages that are genereated via cgi.
The best way seems to use the search.cgi script that is used when somebody
enters a search term in the websites search box.
If I type in the model number, it takes you to the product page.

currently the search is submitted to cgi script via the POST, but I was
wondering if I can pass this modelnumber as a parameter to script via url?

the text box is called "searchkeys"
the cgi is called search.cgi
search is called from post

i would think the url looks like this:
http://www.mydomain.com/cgi-bin/sear...ys=modelnumber

I have tried something similar with other scripts from other websites and it
seems to work.

but in theis case, it doesnt work. I know the cgi scripts sees the forms
info from the sent page, but is there a way to do this by assigning the
value to the text box parameter 'searchkeys' and somehow send using url?
These are for products to be submitted on froogle.

Thanks in advance
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Danny wrote:
Hi

I am trying to create links to my product pages that are genereated via cgi.
The best way seems to use the search.cgi script that is used when somebody
enters a search term in the websites search box.
If I type in the model number, it takes you to the product page.

currently the search is submitted to cgi script via the POST, but I was
wondering if I can pass this modelnumber as a parameter to script via url?

the text box is called "searchkeys"
the cgi is called search.cgi
search is called from post

i would think the url looks like this:
http://www.mydomain.com/cgi-bin/sear...ys=modelnumber

I have tried something similar with other scripts from other websites and it
seems to work.

but in theis case, it doesnt work. I know the cgi scripts sees the forms
info from the sent page, but is there a way to do this by assigning the
value to the text box parameter 'searchkeys' and somehow send using url?
These are for products to be submitted on froogle.


Duh... my head's spinning from that description :-). What's the URL so
we can take a look?

My guess is the CGI script only accepts POST values. Change the script
so it accepts GET values.
Matthias

Jul 20 '05 #2

P: n/a

"Danny" <da********@hotmail.com> wrote in message
news:uu*******************@news4.srv.hcvlny.cv.net ...
Hi

I am trying to create links to my product pages that are genereated via cgi. The best way seems to use the search.cgi script that is used when somebody
enters a search term in the websites search box.
If I type in the model number, it takes you to the product page.

currently the search is submitted to cgi script via the POST, but I was
wondering if I can pass this modelnumber as a parameter to script via url?

the text box is called "searchkeys"
the cgi is called search.cgi
search is called from post

i would think the url looks like this:
http://www.mydomain.com/cgi-bin/sear...ys=modelnumber

I have tried something similar with other scripts from other websites and it seems to work.

but in theis case, it doesnt work. I know the cgi scripts sees the forms
info from the sent page, but is there a way to do this by assigning the
value to the text box parameter 'searchkeys' and somehow send using url?
These are for products to be submitted on froogle.


It all depends on the server code. In ASP, for example, URL parameters can
be accessed as

Request.QueryString("paramName")

and form data can be accessed as

Request.Form("paramName")

but it's also valid to code either of these as

Request("paramName")

in which case the both form data and URL query string data will be checked
for a value by the indicated name. IIRC, in contrast, JSP doesn't have this
option.

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.