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. Quote 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 Quote 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? Quote 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. Quote 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? Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.