URL redirection sending params via POST

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
micbox
Forum Newbie
Posts: 1
Joined: Tue Dec 12, 2006 4:54 am

URL redirection sending params via POST

Post by micbox »

I have a PHP script that should redirect to an ASP script (login.aspx) on another host passing it UserName and Password params via POST. The login.aspx, in its turn, on successful login redirects to search.aspx.

How to organize this redirect in PHP? Maybe there is a corresponding PEAR library or some sample script...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It's not possible to redirect and post at the same time typically.

cURL will be needed to act as a proxy for the user most likely.
Post Reply