cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl: (52) Empty reply from server

From: Ajay <stealthu471_at_gmail.com>
Date: Thu, 17 May 2012 15:48:01 -0700

Hello,

On executing the following command,
curl -v https://www.tvg.com

I am getting the message at the end
curl: (52) Empty reply from server

* About to connect() to www.tvg.com port 443 (#0)
* Trying 208.88.35.20... connected
* Connected to www.tvg.com (208.88.35.20) port 443 (#0)
* Initializing NSS with certpath: /etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_RSA_WITH_AES_128_CBC_SHA
* Server certificate:
* subject: CN=www.tvg.com,OU=Engineering,O=T V G,L=Beaverton,ST=Oregon,C=US
* start date: Oct 14 00:00:00 2011 GMT
* expire date: Oct 22 23:59:59 2016 GMT
* common name: www.tvg.com
* issuer: CN=Thawte SSL CA,O="Thawte, Inc.",C=US
> GET / HTTP/1.1
> User-Agent: curl/7.21.0 (i386-redhat-linux-gnu) libcurl/7.21.0 NSS/
3.12.10.0 zlib/1.2.5 libidn/1.18 libssh2/1.2.4
> Host: www.tvg.com
> Accept: */*
>
* Empty reply from server
* Connection #0 to host www.tvg.com left intact
curl: (52) Empty reply from server
* Closing connection #0

I searched curl-users archive regarding this type of reply and I found the
following thread that mentions about "Unpatched client and patched OpenSSL
server"
http://curl.haxx.se/mail/archive-2010-12/0004.html
I tried to follow the description in the above URL, which refers to
http://www.openssl.org/docs/ssl/SSL_CTX_set_options.html#Unpatched_client_and_patched_Ope

As mentioned in the above URL, I do not know how to set the parameter
"SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION"
Could anyone of you please help me how to set this parameter, if this is
the solution or suggest an alternative way of solving the problem.

I tried executing the same curl command with other https website and I am
getting a non-empty response.

On executing the following command in my system,
openssl version
I am getting the following output
OpenSSL 1.0.0e-fips 6 Sep 2011

Please help.

Thanks,
Ajay

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-18