2016-07-19 12 views
0

私はGoogleの開発者ツールを使用して、私は私のLinuxサーバ上でそのカールを実行すると、カール要求curl:空のレスポンスが得られるのはなぜですか?

enter image description here

として答えをコピーし、私は、サーバー

curl 'https://web-ast.dsi.cnrs.fr/l3c/owa/personnel.liste?nom=&prenom=&code_labo=&p_dep=52&sec=&bap=&emptype=&nat_pers=&typ_pers=&organisme=&delegation=&ville=&p_i=0&p_nb_res=0' \ 
-H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2,pl;q=0.2' \ 
-H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36' \ 
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' \ 
-H 'Cache-Control: max-age=0' -H 'Connection: keep-alive' \ 
--compressed 

curl: (52) Empty reply from server 

冗長出力から空の回答を得ました:

* Hostname was NOT found in DNS cache 
* Trying 193.52.36.99... 
* Connected to web-ast.dsi.cnrs.fr (193.52.36.99) port 443 (#0) 
* successfully set certificate verify locations: 
* CAfile: none 
    CApath: /etc/ssl/certs 
* SSLv3, TLS handshake, Client hello (1): 
* SSLv3, TLS handshake, Server hello (2): 
* SSLv3, TLS handshake, CERT (11): 
* SSLv3, TLS handshake, Server finished (14): 
* SSLv3, TLS handshake, Client key exchange (16): 
* SSLv3, TLS change cipher, Client hello (1): 
* SSLv3, TLS handshake, Finished (20): 
* SSLv3, TLS change cipher, Client hello (1): 
* SSLv3, TLS handshake, Finished (20): 
* SSL connection using AES256-SHA 
* Server certificate: 
* subject: OU=Domain Control Validated; CN=web-ast.dsi.cnrs.fr 
* start date: 2013-10-21 00:00:00 GMT 
* expire date: 2016-10-20 23:59:59 GMT 
* subjectAltName: web-ast.dsi.cnrs.fr matched 
* issuer: C=NL; O=TERENA; CN=TERENA SSL CA 
* SSL certificate verify ok. 
> GET /l3c/owa/personnel.liste?nom=&prenom=&code_labo=&p_dep=52&sec=&bap=&emptype=&nat_pers=&typ_pers=&organisme=&delegation=&ville=&p_i=0&p_nb_res=0 HTTP/1.1 
> Host: web-ast.dsi.cnrs.fr 
> Accept-Encoding: gzip, deflate, sdch, br 
> Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2,pl;q=0.2 
> Upgrade-Insecure-Requests: 1 
> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 
> Cache-Control: max-age=0 
> Connection: keep-alive 
> 
* SSLv3, TLS alert, Client hello (1): 
* Empty reply from server 
* Connection #0 to host web-ast.dsi.cnrs.fr left intact 
curl: (52) Empty reply from server 

なぜか?

+0

こんにちはYarek、私は要求の冗長な出力を追加し、私は同じ問題があります。どのOSとOpenSSLバージョンを使用していますか?私はOpenSSL 1.0.1fを使ってMint 17.2(Ubuntu 14.04)を公開しています。これが関連しているのだろうかと思います。まもなくRHELと他のOpenSSLバージョンで試してみよう。私は 'openssl s_client -connect web-ast.dsi.cnrs.fr:443 'を試してみましたが、私が送信したデータ(偽のデータや有効なHTTPリクエスト)に関係なく、接続はデータを返さずに閉じます。 'wget'も同様の問題を抱えているので、カール関連ではなく、おそらくOpenSSLです。 – drew010

答えて

0

-k、--insecure(SSL)このオプションは、「安全でない」SSL接続と転送を明示的に許可します。すべてのSSL接続は、デフォルトでインストールされたCA証明書バンドルを使用してセキュリティで保護されます。これにより、-k、--insecureが使用されていない限り、すべての接続が「安全でない」とみなされます。

この仲間をお試しください。

+0

それはナーではありません。 TLS交換はうまくいきました。以前はたくさんのことを試みましたが、SSLの問題ではありませんでした。 – drew010

+0

私はそれを試してみました。 – yarek

+0

私は地元の成功のコンテンツを手に入れました。私はあなたがなぜ失敗するのか分からない:( –

関連する問題