Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting and sending POST information simultaneously

Status
Not open for further replies.

BenRussell

Programmer
Mar 12, 2001
243
US
I want to know how to redirect someone to a webpage, but send POST information along with them. I know that I could use the GET method like this:

Code:
print "Location: [URL unfurl="true"]http://www.somesite.tld/somescript.pl?key1=value1&key2=value2\n";[/URL]

However, sometimes there might be more information than a web browser will allow a client to enter into the 'Address' bar of their browser, therefore the GET method would not send all of the information.

Is there a way that I can send someone to a website (for instance, and send information along with them using POST?

- Ben
 
What Paul is saying is 'no'.

A POST action can only come from a client. A server can not issue a redirect with POST data.

You can send GET info or you can proxy the request or you can do other workarounds but you can not directly issue a POST via a redirect.
 
OK. Thank you for the information.

Although Im still wondering about the whole wife censoring post...

- Ben
 
I enjoyed it, she got all masterful and stuff ...

No I was 'Jarred', and I couldn't be eloquent enough, so I blamed my other half, because she said I spend too much timer in front of a PC, and we sat down and wrote cards together.

Sorry for the confusion
--Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top