LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 10:47 PM   #1
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
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, 10: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-29-2009, 11:54 PM   #3
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Original Poster
Rep: Reputation: 129Reputation: 129
Really? So how could this happen? Gentoo curl is broken?
 
Old 08-30-2009, 12: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 12:10 AM.
 
Old 08-30-2009, 12:27 AM   #5
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Original Poster
Rep: Reputation: 129Reputation: 129
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, 12: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, 12:44 AM   #7
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Original Poster
Rep: Reputation: 129Reputation: 129
No, nothing at all
 
Old 08-30-2009, 12: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, 01:19 PM   #9
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

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


Reply



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 10:51 AM
[SOLVED] Using curl to log in to https page. Chris_no Linux - General 3 09-03-2009 03:50 PM
curl: (1) Protocol https not supported or disabled in libcurl guest Linux - Software 1 05-01-2009 03: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 11:42 AM
cURL ballistic509 Debian 2 06-11-2006 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:42 PM.

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
Open Source Consulting | Domain Registration