jamesxg1 Posted May 11, 2010 Share Posted May 11, 2010 Hiya! I was wondering if it is possible to have 2 postbacks with cURL, EG. cURL sends the postfields, a postback is made and filtered, then another postback is made and echo'ed on to the customer? Many thanks, James. Link to comment https://forums.phpfreaks.com/topic/201344-is-it-possible-to-have-2-post-backs-with-curl/ Share on other sites More sharing options...
jamesxg1 Posted May 11, 2010 Author Share Posted May 11, 2010 BUMP Link to comment https://forums.phpfreaks.com/topic/201344-is-it-possible-to-have-2-post-backs-with-curl/#findComment-1056324 Share on other sites More sharing options...
Adam Posted May 11, 2010 Share Posted May 11, 2010 20 minutes required a bump? What do you define as a "postback" exactly? Link to comment https://forums.phpfreaks.com/topic/201344-is-it-possible-to-have-2-post-backs-with-curl/#findComment-1056326 Share on other sites More sharing options...
jamesxg1 Posted May 11, 2010 Author Share Posted May 11, 2010 PostBack = return. I need to return an array at first, then after that return text to be echo'ed. Many thanks, James. Link to comment https://forums.phpfreaks.com/topic/201344-is-it-possible-to-have-2-post-backs-with-curl/#findComment-1056328 Share on other sites More sharing options...
Adam Posted May 11, 2010 Share Posted May 11, 2010 Would this be from the same cURL execution or 2 separate requests? Link to comment https://forums.phpfreaks.com/topic/201344-is-it-possible-to-have-2-post-backs-with-curl/#findComment-1056331 Share on other sites More sharing options...
jamesxg1 Posted May 11, 2010 Author Share Posted May 11, 2010 The client page will execute a cURL function to receive postbacks from a remote file held on another server. Many thanks, James. Link to comment https://forums.phpfreaks.com/topic/201344-is-it-possible-to-have-2-post-backs-with-curl/#findComment-1056332 Share on other sites More sharing options...
Adam Posted May 11, 2010 Share Posted May 11, 2010 Well then I don't think what you're asking is possible, in that with a single request there is only 1 response received. Why do you need to post the data back separately though? Why don't you just return all the data you need at once and parse it accordingly? curl_multi_exec may be of use to you, but that's only executing two cURL sessions / requests at once. Link to comment https://forums.phpfreaks.com/topic/201344-is-it-possible-to-have-2-post-backs-with-curl/#findComment-1056335 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.