LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-29-2009, 11:47 PM   #1
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
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
 
Old 08-29-2009, 11:58 PM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
sorry this doesn't help much, but I can pull the page down with the command you're using.
 
Old 08-30-2009, 12:54 AM   #3
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Original Poster
Rep: Reputation: 128Reputation: 128
Really? So how could this happen? Gentoo curl is broken?
 
Old 08-30-2009, 01:09 AM   #4
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
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"...

Last edited by JulianTosh; 08-30-2009 at 01:10 AM.
 
Old 08-30-2009, 01:27 AM   #5
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Original Poster
Rep: Reputation: 128Reputation: 128
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)
 
Old 08-30-2009, 01:30 AM   #6
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
just for kicks... us the -k option and see if that does anything.
 
Old 08-30-2009, 01:44 AM   #7
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Original Poster
Rep: Reputation: 128Reputation: 128
No, nothing at all
 
Old 08-30-2009, 01:48 AM   #8
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
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..
 
Old 08-30-2009, 02:19 PM   #9
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Original Poster
Rep: Reputation: 128Reputation: 128
Code:
curl https://addons.mozilla.org/en-US/firefox/addon/10254
Work fine
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpected "Unsupported protocol: HTTPS" error in Apache/PHP/curl bions Linux - Server 6 11-29-2010 11:51 AM
[SOLVED] Using curl to log in to https page. Chris_no Linux - General 3 09-03-2009 04:50 PM
curl: (1) Protocol https not supported or disabled in libcurl guest Linux - Software 1 05-01-2009 04:40 AM
cURL: Server has many IPs, how would I make a cURL script use those IPs to send data? guest Programming 0 04-11-2009 12:42 PM
cURL ballistic509 Debian 2 06-11-2006 02:06 PM


All times are GMT -5. The time now is 02:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration