WebCheez Posted April 7, 2012 Share Posted April 7, 2012 I'm trying to send some POST data to a page and then get the contents of it. The page is not on my server, so I can't use Sessions or GET. Google hasn't provided me with a definite answer. How would I do this? Quote Link to comment https://forums.phpfreaks.com/topic/260493-read-external-webpage-with-post-data/ Share on other sites More sharing options...
requinix Posted April 7, 2012 Share Posted April 7, 2012 cURL would be the best place to go. Check out the examples in the various functions' page; you'll need the CURLOPT_POST and CURLOPT_POSTFIELDS options at a minimum. Quote Link to comment https://forums.phpfreaks.com/topic/260493-read-external-webpage-with-post-data/#findComment-1335147 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.