mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
[headless] Use --user for websocket example request
The authentication token can contain slashes. When used as part of the URL, the URL becomes invalid. Therefore, using curl's user parameter is preferrable.
This commit is contained in:
@@ -171,7 +171,8 @@ You can test connecting to the websocket with curl:
|
||||
--header "Upgrade: websocket" \
|
||||
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
|
||||
--header "Sec-WebSocket-Version: 13" \
|
||||
http://DZbfoUie8sjap7CSDR9y6cgJCojV+xUITTIFbgtAgqk=@127.0.0.1:7000/v1/ws
|
||||
--user "DZbfoUie8sjap7CSDR9y6cgJCojV+xUITTIFbgtAgqk="
|
||||
http://127.0.0.1:7000/v1/ws
|
||||
|
||||
The headers are only required when testing with curl.
|
||||
Your websocket client will most likely add these headers automatically.
|
||||
|
||||
Reference in New Issue
Block a user