libtest/lib1560: test basic websocket URL parsing

This commit is contained in:
Daniel Stenberg 2022-09-09 15:11:14 +02:00
parent 6a9b1d1c94
commit ef80a87f40
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -138,6 +138,17 @@ struct clearurlcase {
};
static const struct testcase get_parts_list[] ={
#ifdef USE_WEBSOCKETS
{"ws://example.com/color/?green",
"ws | [11] | [12] | [13] | example.com | [15] | /color/ | green |"
" [17]",
CURLU_DEFAULT_SCHEME, 0, CURLUE_OK },
{"wss://example.com/color/?green",
"wss | [11] | [12] | [13] | example.com | [15] | /color/ | green |"
" [17]",
CURLU_DEFAULT_SCHEME, 0, CURLUE_OK },
#endif
{"https://user:password@example.net/get?this=and#but frag then", "",
CURLU_DEFAULT_SCHEME, 0, CURLUE_BAD_FRAGMENT},
{"https://user:password@example.net/get?this=and what", "",