mirror of
https://github.com/curl/curl.git
synced 2026-07-27 01:27:15 +03:00
parent
12e1def51a
commit
117e3372a8
1 changed files with 15 additions and 0 deletions
|
|
@ -6,6 +6,21 @@ SPDX-License-Identifier: curl
|
|||
|
||||
# WebSocket in curl
|
||||
|
||||
## URL
|
||||
|
||||
WebSocket communication with libcurl is done by setting up a transfer to a URL
|
||||
using the `ws:/` or `wss://` URL schemes. The latter one being the secure
|
||||
version done over HTTPS.
|
||||
|
||||
When using `wss://` to do WebSocket over HTTPS, the standard TLS and HTTPS
|
||||
options will be acknowledged for the CA, verification of server certificate
|
||||
etc.
|
||||
|
||||
WebSocket communication is done by upgrading a connection from either HTTP or
|
||||
HTTPS. When given a WebSocket URL to work with, libcurl considers it a
|
||||
transfer failure if the upgrade procedure fails. This means that a plain HTTP
|
||||
200 response code is considered an error for this work.
|
||||
|
||||
## API
|
||||
|
||||
The WebSocket API is described in the individual man pages for the new API.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue