Send Post Request and show site

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
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

Send Post Request and show site

Post by AGISB »

Somehow I am trying to send a post request and display the requested site.

I found this Post viewtopic.php?f=1&t=82842&p=461006&hili ... en#p461006

but when I am trying to use it, the site simply does not get called. Basically what I am trying to achive is that a site needs to be called either by GET or POST but not using a form. So I have a link to a script that decides how to call the site by some criteria. I can use the Location redirect for the get request but how do I archive the post request?
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Send Post Request and show site

Post by McInfo »

You can use the Firefox extension Tamper Data to see what the headers need to be for a POST request.

Edit: This post was recovered from search engine cache.
Post Reply