clay1 Posted March 11, 2010 Share Posted March 11, 2010 I am posting data to a site using curl Their instructions say: 'Response: You will receive an escaped query string response back on the page containing 4 values: Error = 1 or 0 (1 = true, 0 = false) Error_desc = txt message describing error Accepted = 1 or 0 (1= true, 0 = false) Accepted_msg = response So your final response page will contain 1 string as such: &Error=1&error_desc=missing%29field%20emailaddress&accepted=0&accepted_msg=invalid%20post' I need to do different things depending on this response but I am not sure how to capture or parse it? I thought maybe it was being sent back to me as a $_post but it's not Link to comment https://forums.phpfreaks.com/topic/194956-handling-response-codes/ Share on other sites More sharing options...
teamatomic Posted March 11, 2010 Share Posted March 11, 2010 Try a $GET HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/194956-handling-response-codes/#findComment-1024973 Share on other sites More sharing options...
clay1 Posted March 11, 2010 Author Share Posted March 11, 2010 I did a var_dump on get and it was null Link to comment https://forums.phpfreaks.com/topic/194956-handling-response-codes/#findComment-1024976 Share on other sites More sharing options...
clay1 Posted March 11, 2010 Author Share Posted March 11, 2010 I dumped all declared variables and none of that stuff was found Link to comment https://forums.phpfreaks.com/topic/194956-handling-response-codes/#findComment-1024977 Share on other sites More sharing options...
clay1 Posted March 12, 2010 Author Share Posted March 12, 2010 Any ideas on how I can get this in a variable? Link to comment https://forums.phpfreaks.com/topic/194956-handling-response-codes/#findComment-1025001 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.