bradickson Posted July 29, 2012 Share Posted July 29, 2012 Hi, Basically, I need to accomplish multiple visits to a URL each time with different POST/GET data (preferably POST) from a server side script. Like submitting multiple Html forms without needing to press the button on each of them. Or like using header("Location: ".$someUrl . $args) but serveral at once and with $args changing each time. (It's for sending bulk sms messages through an online provider.) Basically at this stage I've got an array of messages to be sent, and need to set the script up as a cron job. Thanks for any assistance you can offer. Quote Link to comment https://forums.phpfreaks.com/topic/266407-multiple-form-actionsheaderlocation-but-server-side/ Share on other sites More sharing options...
kicken Posted July 29, 2012 Share Posted July 29, 2012 Use [m=curl]cURL[/m] to send your HTTP requests. Do that within a loop to send multiple requests. In pseudo-code: foreach ($requestToBeMade as $args){ runRequestWithCurl($args) } Quote Link to comment https://forums.phpfreaks.com/topic/266407-multiple-form-actionsheaderlocation-but-server-side/#findComment-1365240 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.