Re: Error occurred when post data via PHP7 with cURL by HTTP/2
Allen Tsao <[email protected]> Wed, 20 Apr 2016 15:48:23 +0000
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <[email protected]> |
--===============0749801524== Content-Type: multipart/alternative; boundary=Apple-Mail-D7CC8F86-B44C-4B1C-9A53-00226CC46264 Content-Transfer-Encoding: 7bit --Apple-Mail-D7CC8F86-B44C-4B1C-9A53-00226CC46264 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Resolved by reinstalled PHP from source. THANKS. Sent from my Phone > On 18 Apr 2016, at 22:04, Daniel Stenberg <[email protected]> wrote: >=20 >> On Mon, 18 Apr 2016, Allen Tsao wrote: >>=20 >> Hi all, >>=20 >> I got error message when I send push message to APNs via PHP7+cURL. >>=20 >> error message: ???@@???HTTP/2 client preface string missing or corrupt. H= ex dump for received bytes: >=20 > Where does that message come from? What does it mean? >=20 > I assume this means you're talking to a HTTPS server? Have you tried other= HTTP/2 speaking servers? >=20 >> I guess it's because of PHP7 but not very sure. with phpinfo() I can see t= hat no mod_ssl loaded but from Internet it says PHP7 support ssl by nature s= o openssl.so is not existed in system any more. Also it's strange with phpin= fo() I saw the openssl version is 1.0.1e which is coming with redhat7, not t= he one I installed from source. >=20 > I don't understand. Did your PHP/CURL use OpenSSL 1.0.1 or 1.0.2 ? >=20 > --=20 >=20 > / daniel.haxx.se > _______________________________________________ > http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php --Apple-Mail-D7CC8F86-B44C-4B1C-9A53-00226CC46264 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D= utf-8"></head><body dir=3D"auto"><div>Resolved by reinstalled PHP from sourc= e.</div><div id=3D"AppleMailSignature"><br></div><div id=3D"AppleMailSignatu= re">THANKS.<br><br>Sent from my <span style=3D"font-size: 13pt;">Phone<= /span></div><div><br>On 18 Apr 2016, at 22:04, Daniel Stenberg <<a href=3D= "mailto:[email protected]">[email protected]</a>> wrote:<br><br></div><blockquo= te type=3D"cite"><div><span>On Mon, 18 Apr 2016, Allen Tsao wrote:</span><br= ><span></span><br><blockquote type=3D"cite"><span>Hi all,</span><br></blockq= uote><blockquote type=3D"cite"><span></span><br></blockquote><blockquote typ= e=3D"cite"><span>I got error message when I send push message to APNs via PH= P7+cURL.</span><br></blockquote><blockquote type=3D"cite"><span></span><br><= /blockquote><blockquote type=3D"cite"><span>error message: ???@@???HTTP/2 cl= ient preface string missing or corrupt. Hex dump for received bytes:</span><= br></blockquote><span></span><br><span>Where does that message come from? Wh= at does it mean?</span><br><span></span><br><span>I assume this means you're= talking to a HTTPS server? Have you tried other HTTP/2 speaking servers?</s= pan><br><span></span><br><blockquote type=3D"cite"><span>I guess it's becaus= e of PHP7 but not very sure. with phpinfo() I can see that no mod_ssl loaded= but from Internet it says PHP7 support ssl by nature so openssl.so is not e= xisted in system any more. Also it's strange with phpinfo() I saw the openss= l version is 1.0.1e which is coming with redhat7, not the one I installed fr= om source.</span><br></blockquote><span></span><br><span>I don't understand.= Did your PHP/CURL use OpenSSL 1.0.1 or 1.0.2 ?</span><br><span></span><br><= span>-- </span><br><span></span><br><span> / <a href=3D"http://daniel.haxx.s= e">daniel.haxx.se</a></span><br><span>______________________________________= _________</span><br><span><a href=3D"http://cool.haxx.se/cgi-bin/mailman/lis= tinfo/curl-and-php">http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-ph= p</a></span><br></div></blockquote></body></html>= --Apple-Mail-D7CC8F86-B44C-4B1C-9A53-00226CC46264-- --===============0749801524== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KaHR0cDovL2Nv b2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vY3VybC1hbmQtcGhwCg== --===============0749801524==--