From: Daniel Stenberg Date: Fri, 9 Sep 2022 13:11:14 +0000 (+0200) Subject: libtest/lib1560: test basic websocket URL parsing X-Git-Tag: curl-7_86_0~279 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef80a87f400e1f8094568941025f6177bc85f4dd;p=thirdparty%2Fcurl.git libtest/lib1560: test basic websocket URL parsing --- diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c index 1ec1e3cc9e..891c4701a3 100644 --- a/tests/libtest/lib1560.c +++ b/tests/libtest/lib1560.c @@ -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", "",