LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-03-2020, 11:12 AM   #1
notooth
Member
 
Registered: Apr 2005
Posts: 192

Rep: Reputation: 15
curl: (1) Protocol "wss" not supported or disabled in libcurl


Hello,

Can anyone help me fix this error:
Code:
$ curl wss://echo.websocket.org/
curl: (1) Protocol "wss" not supported or disabled in libcurl
 
Old 12-03-2020, 11:17 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
curl does not support wss that way. https://gist.github.com/htp/fbce1906...86b594104f01d0
 
Old 12-03-2020, 11:47 AM   #3
notooth
Member
 
Registered: Apr 2005
Posts: 192

Original Poster
Rep: Reputation: 15
I followed the instruction. It does not work either.
Code:
$ curl --include --no-buffer --header "Connection: Upgrade" --header "Upgrade: websocket" --header "Host: echo.websocket.org" --header "Origin: wss://echo.websocket.org" --header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" --header "Sec-WebSocket-Version: 13" wss://echo.websocket.org
curl: (1) Protocol "wss" not supported or disabled in libcurl
 
Old 12-03-2020, 12:40 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Quote:
Originally Posted by notooth View Post
I followed the instruction. It does not work either.
Code:
$ curl --include --no-buffer --header "Connection: Upgrade" --header "Upgrade: websocket" --header "Host: echo.websocket.org" --header "Origin: wss://echo.websocket.org" --header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" --header "Sec-WebSocket-Version: 13" wss://echo.websocket.org
curl: (1) Protocol "wss" not supported or disabled in libcurl
Not quite... if I understand that example, the request must be over HTTP then the connection upgrades to wss.
 
Old 12-03-2020, 02:21 PM   #5
notooth
Member
 
Registered: Apr 2005
Posts: 192

Original Poster
Rep: Reputation: 15
Is it possible to use wss protocol with curl?
 
Old 12-03-2020, 02:36 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by notooth View Post
Is it possible to use wss protocol with curl?
Did you even try to do some research?
 
Old 10-07-2023, 07:25 AM   #7
hxtn
LQ Newbie
 
Registered: Oct 2023
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by ondoho View Post
Did you even try to do some research?
Thank you for providing absolutely nothing to this conversation. This thread is the third result when clicking your link, how do you think I got here?

Sorry for necroposting, I had to create an account to say this.
 
Old 10-08-2023, 11:35 PM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
Quote:
Originally Posted by hxtn View Post
Thank you for providing absolutely nothing to this conversation. This thread is the third result when clicking your link, how do you think I got here?

Sorry for necroposting, I had to create an account to say this.
reported.
 
  


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
Cannot get curl: (1) Protocol httpd not supported or disabled in libcurl to work? ziggs Linux - Newbie 7 04-21-2018 02:21 PM
Propagate DHCP Server on DMZ to WSs mgonzalez Linux - Server 2 06-04-2009 05:42 PM
curl: (1) Protocol https not supported or disabled in libcurl guest Linux - Software 1 05-01-2009 03:40 AM
libcurl & curl-config problems jz32300 Linux - Newbie 2 06-09-2006 01:25 PM
clweather curl libcurl Suse 9.2 acummings SUSE / openSUSE 1 01-01-2005 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:27 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
Open Source Consulting | Domain Registration