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? Quote Link to comment 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. Quote Link to comment 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.