cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Error occurred when post data via PHP7 with cURL by HTTP/2

From: Allen Tsao <ostrich.tsao_at_gmail.com>
Date: Wed, 20 Apr 2016 15:48:23 +0000

Resolved by reinstalled PHP from source.

THANKS.

Sent from my Phone

> On 18 Apr 2016, at 22:04, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
>> On Mon, 18 Apr 2016, Allen Tsao wrote:
>>
>> Hi all,
>>
>> I got error message when I send push message to APNs via PHP7+cURL.
>>
>> error message: ???@@???HTTP/2 client preface string missing or corrupt. Hex dump for received bytes:
>
> Where does that message come from? What does it mean?
>
> I assume this means you're talking to a HTTPS server? Have you tried other HTTP/2 speaking servers?
>
>> I guess it's because 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 existed in system any more. Also it's strange with phpinfo() I saw the openssl version is 1.0.1e which is coming with redhat7, not the one I installed from source.
>
> I don't understand. Did your PHP/CURL use OpenSSL 1.0.1 or 1.0.2 ?
>
> --
>
> / daniel.haxx.se
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2016-04-20