John
John

Reputation: 437

About Redirect as POST

I want to redirect the user to some url in other website, but to send with his redirect some post variable.. is this possible? And if yes, how?

Thanks.

Upvotes: 1

Views: 690

Answers (1)

gd1
gd1

Reputation: 11403

It is not. :(

You can however submit an hidden form using Javascript.

EDIT: shame upon me. It seems it can be achieved w/o Javascript. Try to post some data to a PHP page you write yourself, which basically tells the browser to do a 303 See Other redirect. It shall work, in the sense that the browser should re-POST the data on the redirection target, but someone reports this causes the browser to show a "really repost the data?" message, like the one you see if you refresh a web page you loaded with a POST.

However, even if it works, I think nobody does it.

Upvotes: 1

Related Questions