Skip to content

Commit bf3efc5

Browse files
committed
tests: add more options and combinations
1 parent ac9570c commit bf3efc5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test.pl

+13
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,23 @@
2626
"--url https://curl.se/we/../are.html --set port=8080|https://curl.se:8080/are.html",
2727
"--url https://curl.se/we/are.html --get \"{path}\"|/we/are.html",
2828
"--url https://curl.se/we/are.html --get \"{port}\"|443",
29+
"--url https://curl.se/we/are.html --get \"{scheme}\"|https",
30+
"--url https://hello\@curl.se/we/are.html --get \"{user}\"|hello",
31+
"--url https://hello:secret\@curl.se/we/are.html --get \"{password}\"|secret",
32+
"--url \"imap://hello:secret;crazy\@curl.se/we/are.html\" --get \"{options}\"|crazy",
33+
"--url https://curl.se/we/are.html --get \"{host}\"|curl.se",
34+
"--url https://10.1/we/are.html --get \"{host}\"|10.0.0.1",
35+
"--url https://[fe80::0000:20c:29ff:fe9c:409b]:8080/we/are.html --get \"{host}\"|[fe80::20c:29ff:fe9c:409b]",
36+
"--url https://[fe80::0000:20c:29ff:fe9c:409b%eth0]:8080/we/are.html --get \"{zoneid}\"|eth0",
37+
"--url \"https://curl.se/we/are.html?user=many#more\" --get \"{query}\"|user=many",
38+
"--url \"https://curl.se/we/are.html?user=many#more\" --get \"{fragment}\"|more",
2939
"--url https://curl.se/we/are.html -g \"{port}\"|443",
3040
"--url https://curl.se/hello --append path=you|https://curl.se/hello/you",
3141
"--url \"https://curl.se?name=hello\" --append query=search=string|https://curl.se/?name=hello&search=string",
3242
"--url https://curl.se/hello --set user=:hej:|https://%3ahej%3a\@curl.se/hello",
43+
"--url https://curl.se/hello --set user=hej --set password=secret|https://hej:secret\@curl.se/hello",
44+
"--url https://curl.se/hello --set query:=user=me|https://curl.se/hello?user=me",
45+
"--url https://curl.se/hello --set fragment=\" hello\"|https://curl.se/hello#%20hello",
3346
"localhost --append query=hello=foo|http://localhost/?hello=foo",
3447
"\"https://example.com?search=hello&utm_source=tracker\" --trim query=\"utm_*\"|https://example.com/?search=hello",
3548
"\"https://example.com?search=hello&utm_source=tracker&more=data\" --trim query=\"utm_*\"|https://example.com/?search=hello&more=data",

0 commit comments

Comments
 (0)