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: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 19 Apr 2016 00:04:19 +0200 (CEST)

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
Received on 2016-04-19