michaellunsford Posted June 21, 2006 Share Posted June 21, 2006 I'm sending a POST request to paypal for payment verificication. The results are supposed to look like this:[code]SUCCESSfirst_name=Jane+Doelast_name=Smithpayment_status=Completedpayer_email=janedoesmith%40hotmail.compayment_gross=3.99mc_currency=USDcustom=For+the+purchase+of+the+rare+book+Green+Eggs+%26+Ham[/code]If I manually post a form, it looks fine. However, because I'm using fsockopen and fgets, the results are quite askew:[code]10 SUCCESSmc_gross6 =3.991 e address_status1 =9 confirmed1 ...etc... [/code]Is there a way to remedy this under PHP 4.3? Link to comment https://forums.phpfreaks.com/topic/12587-fsockopen-and-fgets-challenges/ Share on other sites More sharing options...
michaellunsford Posted June 22, 2006 Author Share Posted June 22, 2006 I have circumvented this issue by using PHP's curl functions.However, I would really like to learn the cause of extraneous text and newline data in my fgets results. Link to comment https://forums.phpfreaks.com/topic/12587-fsockopen-and-fgets-challenges/#findComment-48296 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.