mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
tests: add cookies
features
These tests don't work with `--disable-cookies`. Closes https://github.com/curl/curl/pull/10713
This commit is contained in:
parent
387dbe53c4
commit
29a19369ec
@ -77,6 +77,9 @@ HTTP Location: following with cookies
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L -c log/jar%TESTNUMBER
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -77,6 +77,9 @@ HTTP Location: following with command-line and server cookies
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L -c log/jar%TESTNUMBER -b forcedcookie=yes
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -62,6 +62,7 @@ HTTP cookie expiry date at Jan 1 00:00:00 GMT 1970
|
||||
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L -x %HOSTIP:%HTTPPORT -c log/cookies%TESTNUMBER.jar
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
proxy
|
||||
</features>
|
||||
</client>
|
||||
|
@ -40,6 +40,9 @@ HTTP with cookie parser and header recording
|
||||
<precheck>
|
||||
perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
|
||||
</precheck>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -41,6 +41,9 @@ HTTP with too long cookies
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c log/cookies%TESTNUMBER.txt
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -30,6 +30,9 @@ HTTP cookie with parameter word as name
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c log/cookies%TESTNUMBER.txt
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -31,6 +31,9 @@ HTTP with long funny format cookie
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c log/cookies%TESTNUMBER.txt
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -30,6 +30,9 @@ HTTP cookie with path set twice
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c log/cookies%TESTNUMBER.txt
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -40,6 +40,7 @@ example.fake FALSE /c FALSE 2139150993 moo2 indeed
|
||||
example.fake TRUE /c FALSE 2139150993 moo3 indeed
|
||||
</file>
|
||||
<features>
|
||||
cookies
|
||||
proxy
|
||||
</features>
|
||||
</client>
|
||||
|
@ -33,6 +33,7 @@ HTTP cookies and domains with same prefix
|
||||
http://example.fake/c/%TESTNUMBER http://example.fake/c/%TESTNUMBER http://bexample.fake/c/%TESTNUMBER -b nonexisting -x %HOSTIP:%HTTPPORT
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
proxy
|
||||
</features>
|
||||
</client>
|
||||
|
@ -32,6 +32,7 @@ HTTP cookie path match
|
||||
http://example.fake/hoge/%TESTNUMBER http://example.fake/hogege/ -b nonexisting -x %HOSTIP:%HTTPPORT
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
proxy
|
||||
</features>
|
||||
</client>
|
||||
|
@ -32,6 +32,9 @@ HTTP, use cookies with localhost
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want?hoge=fuga -b non-existing -H "Host: localhost"
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -65,6 +65,7 @@ HTTP --proxy-anyauth and 407 with cookies
|
||||
-U myname:mypassword -x %HOSTIP:%HTTPPORT http://z.x.com/%TESTNUMBER --proxy-anyauth -c log/dump%TESTNUMBER
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
proxy
|
||||
</features>
|
||||
</client>
|
||||
|
@ -39,6 +39,7 @@ Set-Cookie: time=2
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
cookies
|
||||
ipv6
|
||||
</features>
|
||||
<server>
|
||||
|
@ -47,6 +47,7 @@ TZ=GMT
|
||||
http://example.com/we/want/%TESTNUMBER -b none -c log/jar%TESTNUMBER.txt -x %HOSTIP:%HTTPPORT
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
proxy
|
||||
</features>
|
||||
</client>
|
||||
|
@ -34,6 +34,7 @@ HTTP, get cookie with dot prefixed full domain
|
||||
-c log/jar%TESTNUMBER -x %HOSTIP:%HTTPPORT http://z.x.com/%TESTNUMBER
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
proxy
|
||||
</features>
|
||||
</client>
|
||||
|
@ -38,6 +38,9 @@ http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -b log/jar%TESTNUMBER.txt -b "tool=
|
||||
.%HOSTIP TRUE / FALSE 0 partmatch present
|
||||
%HOSTIP FALSE /we/want/ FALSE 2139150993 nodomain value
|
||||
</file>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -39,6 +39,7 @@ supertrooper.fake FALSE /b FALSE 0 moo1 indeed
|
||||
supertrooper.fake FALSE /c FALSE 2139150993 moo2 indeed
|
||||
</file>
|
||||
<features>
|
||||
cookies
|
||||
proxy
|
||||
</features>
|
||||
</client>
|
||||
|
@ -35,6 +35,9 @@ lib%TESTNUMBER
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -29,6 +29,9 @@ Get same cookie page several times
|
||||
<command>
|
||||
"http://%HOSTIP:%HTTPPORT/want/{%TESTNUMBER,%TESTNUMBER,%TESTNUMBER}" -b none
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -133,6 +133,9 @@ http://test31.curl:%HTTPPORT/we/want/%TESTNUMBER -b none -c log/jar%TESTNUMBER.t
|
||||
<precheck>
|
||||
perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
|
||||
</precheck>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -45,6 +45,9 @@ HTTP with cookiejar without cookies left
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -b none -c log/cookies%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER0002
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -52,6 +52,9 @@ TZ=GMT
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -b log/jar%TESTNUMBER.txt -b log/jar%TESTNUMBER-2.txt -H "Host: host.foo.com" http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER0002
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -43,6 +43,7 @@ HTTP with cookie using host name 'moo'
|
||||
-x http://%HOSTIP:%HTTPPORT http://moo/we/want/%TESTNUMBER -b none http://moo/we/want/%TESTNUMBER0002
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
proxy
|
||||
</features>
|
||||
</client>
|
||||
|
@ -40,6 +40,9 @@ http://localhost:%HTTPPORT/%TESTNUMBER -b none http://localhost:%HTTPPORT/%TESTN
|
||||
<precheck>
|
||||
perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
|
||||
</precheck>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -48,6 +48,9 @@ http://%HOSTIP:%HTTPPORT/func_test/del_cookie -b log/cookie%TESTNUMBER -c log/sa
|
||||
#HttpOnly_%HOSTIP FALSE / FALSE 1709598616 mycookie1 4900
|
||||
#HttpOnly_%HOSTIP FALSE /func_test/ FALSE 0 mycookie 1200
|
||||
</file>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
#
|
||||
|
@ -193,6 +193,9 @@ attack.invalid TRUE / FALSE 0 name149 could-be-large-149
|
||||
attack.invalid TRUE / FALSE 0 name150 could-be-large-150
|
||||
attack.invalid TRUE / FALSE 0 name151 could-be-large-151
|
||||
</file>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
#
|
||||
|
@ -62,6 +62,9 @@ attack.invalid TRUE / FALSE 0 huge-18 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
attack.invalid TRUE / FALSE 0 huge-19 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-19
|
||||
attack.invalid TRUE / FALSE 0 huge-20 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-20
|
||||
</file>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
#
|
||||
|
@ -118,6 +118,9 @@ Many Set-Cookie response headers
|
||||
<command>
|
||||
http://attack.invalid:%HTTPPORT/a/b/%TESTNUMBER -c log/cookie%TESTNUMBER --resolve attack.invalid:%HTTPPORT:%HOSTIP
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
#
|
||||
|
@ -56,6 +56,9 @@ domain..tld FALSE / FALSE 2139150993 mooo indeed
|
||||
#HttpOnly_domain..tld FALSE /want FALSE 2139150993 mooo2 indeed2
|
||||
domain..tld FALSE /want FALSE 0 empty
|
||||
</file>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -36,6 +36,9 @@ HTTP, junk session cookies
|
||||
%HOSTIP FALSE / FALSE 0 moo1 indeed
|
||||
%HOSTIP FALSE / FALSE 1 moo2 indeed
|
||||
</file>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -58,6 +58,9 @@ curl_easy_reset with referer and other strings set
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
#
|
||||
|
@ -31,6 +31,9 @@ HTTP with simple cookie send
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER -b "name=contents;name2=content2" -b name3=content3
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -47,6 +47,9 @@ TZ=GMT
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -c log/jar%TESTNUMBER.txt -H "Host: www.host.foo.com"
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -42,6 +42,9 @@ http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/%T
|
||||
|
||||
.foo.com TRUE /moo TRUE 0 test3 maybe
|
||||
</file>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -61,6 +61,9 @@ verify setting CURLOPT_COOKIEFILE to NULL again
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
#
|
||||
|
@ -31,6 +31,9 @@ HTTP, receive cookies when using custom Host:, domain using only two dots
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -c log/jar%TESTNUMBER.txt -H "Host: host.NOT_DISCLOSED.se"
|
||||
</command>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -81,6 +81,9 @@ Set-Cookie: cookie31=%hex[%7f-junk]hex%
|
||||
<precheck>
|
||||
perl -e 'if ("%HOSTIP" !~ /\.0\.0\.1$/) {print "Test only works for HOSTIPs ending with .0.0.1"; exit(1)}'
|
||||
</precheck>
|
||||
<features>
|
||||
cookies
|
||||
</features>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
|
@ -27,6 +27,7 @@ Set-Cookie: a=b; Domain=.me.;
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
cookies
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
|
Loading…
Reference in New Issue
Block a user