paypal - PDT returning 423 as first line before success? -
i'm trying pdt working in sandbox, , have run afoul of problem of using http 1.1 described here:
https://stackoverflow.com/a/14701946/391615
having changed everything, when create connection
$fp = fsockopen ('ssl://www.sandbox.paypal.com', 443, $errno, $errstr, 30); fputs ($fp, $header . $req); // read body data $res = ''; while (!feof($fp)) { $line = fgets ($fp, 1024); // etc...
i find first lines return this:
423 success mc_gross=240.00 invoice=pp0000 protection_eligibility=partially+eligible+-+inr+only address_status=unconfirmed
any idea 423 about?
well here go: php fsockopen() / fread() returns messed data
looks it's chunked data being returned server
Comments
Post a Comment