LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   HTTPS and CURL (https://www.linuxquestions.org/questions/linux-software-2/https-and-curl-751194/)

Elv13 08-29-2009 10:47 PM

HTTPS and CURL
 
Hi,

I am trying to fetch a HTML page using the curl command line, but I always get
Code:

curl: (35) gnutls_handshake() failed: A TLS packet with unexpected length was received.
Using TLS or curl: (35) Unknown SSL protocol error in connection to www.videotron.com:443 using SSL

My command is:
Code:

curl -d "submit=password" https://www.videotron.com/services/secur/CIUser.do?lang=FRENCH
Anyone have an idea how to fetch that page?

*It use POST method insead of GET so I can't use wget

JulianTosh 08-29-2009 10:58 PM

sorry this doesn't help much, but I can pull the page down with the command you're using.

Elv13 08-29-2009 11:54 PM

Really? So how could this happen? Gentoo curl is broken?

JulianTosh 08-30-2009 12:09 AM

i see lots of googles indicating such a problem has been fixed in newer packages... is everything up to date? (specifically gnutls)

Other alternatives to look into are networking issues where a nat router/firewall is incorrectly rebuilding the packet "on the other side"...

Elv13 08-30-2009 12:27 AM

Well, yes, everything is up to date. I saw those post too, but they don't solve my problem

net-libs/gnutls 2.8.3
net-misc/curl 7.19.6

I don't think it is my router, the site work in all browser and I have the problem with OpenSSL too (curl support many backend)

JulianTosh 08-30-2009 12:30 AM

just for kicks... us the -k option and see if that does anything.

Elv13 08-30-2009 12:44 AM

No, nothing at all

JulianTosh 08-30-2009 12:48 AM

What about another https site using curl?

If possible, I'd try doing a test to a an https server on the inside of your network too.

See if that tells us anything..

Elv13 08-30-2009 01:19 PM

Code:

curl https://addons.mozilla.org/en-US/firefox/addon/10254
Work fine


All times are GMT -5. The time now is 12:06 AM.