X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Fdata%2Ftest31;h=d730c6b867bb149fc5a79afa599f4aa398e1ec02;hb=cfd75dcdb18d0a4291f48020211c65507a97d9eb;hp=2289d56d77fe9a3a1faba9c9ca8e4ca6e37d3518;hpb=24b9957402f17c422eeeb3386bf049feeb342e78;p=platform%2Fupstream%2Fcurl.git diff --git a/tests/data/test31 b/tests/data/test31 index 2289d56..d730c6b 100644 --- a/tests/data/test31 +++ b/tests/data/test31 @@ -10,54 +10,54 @@ cookiejar # Server-side -HTTP/1.1 200 OK -Date: Thu, 09 Nov 2010 14:49:00 GMT -Server: test-server/fake -Content-Length: 4 -Content-Type: text/html -Funny-head: yesyes -Set-Cookie: foobar=name; domain=anything.com; path=/ ; secure -Set-Cookie:ismatch=this ; domain=127.0.0.1; path=/silly/ -Set-Cookie: overwrite=this ; domain=127.0.0.1; path=/overwrite/ -Set-Cookie: overwrite=this2 ; domain=127.0.0.1; path=/overwrite -Set-Cookie: sec1value=secure1 ; domain=127.0.0.1; path=/secure1/ ; secure -Set-Cookie: sec2value=secure2 ; domain=127.0.0.1; path=/secure2/ ; secure= -Set-Cookie: sec3value=secure3 ; domain=127.0.0.1; path=/secure3/ ; secure= -Set-Cookie: sec4value=secure4 ; secure=; domain=127.0.0.1; path=/secure4/ ; -Set-Cookie: sec5value=secure5 ; secure; domain=127.0.0.1; path=/secure5/ ; -Set-Cookie: sec6value=secure6 ; secure ; domain=127.0.0.1; path=/secure6/ ; -Set-Cookie: sec7value=secure7 ; secure ; domain=127.0.0.1; path=/secure7/ ; -Set-Cookie: sec8value=secure8 ; secure= ; domain=127.0.0.1; path=/secure8/ ; -Set-Cookie: secure=very1 ; secure=; domain=127.0.0.1; path=/secure9/; -Set-Cookie: httpo1=value1 ; domain=127.0.0.1; path=/p1/; httponly -Set-Cookie: httpo2=value2 ; domain=127.0.0.1; path=/p2/; httponly= -Set-Cookie: httpo3=value3 ; httponly; domain=127.0.0.1; path=/p3/; -Set-Cookie: httpo4=value4 ; httponly=; domain=127.0.0.1; path=/p4/; -Set-Cookie: httponly=myvalue1 ; domain=127.0.0.1; path=/p4/; httponly -Set-Cookie: httpandsec=myvalue2 ; domain=127.0.0.1; path=/p4/; httponly; secure -Set-Cookie: httpandsec2=myvalue3; domain=127.0.0.1; path=/p4/; httponly=; secure -Set-Cookie: httpandsec3=myvalue4 ; domain=127.0.0.1; path=/p4/; httponly; secure= -Set-Cookie: httpandsec4=myvalue5 ; domain=127.0.0.1; path=/p4/; httponly=; secure= -Set-Cookie: httpandsec5=myvalue6 ; domain=127.0.0.1; path=/p4/; secure; httponly= -Set-Cookie: httpandsec6=myvalue7 ; domain=127.0.0.1; path=/p4/; secure=; httponly= -Set-Cookie: httpandsec7=myvalue8 ; domain=127.0.0.1; path=/p4/; secure; httponly -Set-Cookie: httpandsec8=myvalue9; domain=127.0.0.1; path=/p4/; secure=; httponly -Set-Cookie: partmatch=present; domain=127.0.0.1 ; path=/; -Set-Cookie:eat=this; domain=moo.foo.moo; -Set-Cookie: eat=this-too; domain=.foo.moo; -Set-Cookie: nodomainnovalue -Set-Cookie: nodomain=value; expires=Fri Feb 2 11:56:27 GMT 2035 -Set-Cookie: novalue; domain=reallysilly -Set-Cookie: test=yes; domain=foo.com; expires=Sat Feb 2 11:56:27 GMT 2030 -Set-Cookie: test2=yes; domain=se; expires=Sat Feb 2 11:56:27 GMT 2030 -Set-Cookie: magic=yessir; path=/silly/; HttpOnly -Set-Cookie: blexp=yesyes; domain=127.0.0.1; domain=127.0.0.1; expiry=totally bad; -Set-Cookie: partialip=nono; domain=.0.0.1; -Set-Cookie: withspaces= yes within and around ; -Set-Cookie: withspaces2 =before equals; -Set-Cookie: prespace= yes before; -Set-Cookie: securewithspace=after ; secure = - +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 4 +Content-Type: text/html +Funny-head: yesyes +Set-Cookie: foobar=name; domain=anything.com; path=/ ; secure +Set-Cookie:ismatch=this ; domain=127.0.0.1; path=/silly/ +Set-Cookie: overwrite=this ; domain=127.0.0.1; path=/overwrite/ +Set-Cookie: overwrite=this2 ; domain=127.0.0.1; path=/overwrite +Set-Cookie: sec1value=secure1 ; domain=127.0.0.1; path=/secure1/ ; secure +Set-Cookie: sec2value=secure2 ; domain=127.0.0.1; path=/secure2/ ; secure= +Set-Cookie: sec3value=secure3 ; domain=127.0.0.1; path=/secure3/ ; secure= +Set-Cookie: sec4value=secure4 ; secure=; domain=127.0.0.1; path=/secure4/ ; +Set-Cookie: sec5value=secure5 ; secure; domain=127.0.0.1; path=/secure5/ ; +Set-Cookie: sec6value=secure6 ; secure ; domain=127.0.0.1; path=/secure6/ ; +Set-Cookie: sec7value=secure7 ; secure ; domain=127.0.0.1; path=/secure7/ ; +Set-Cookie: sec8value=secure8 ; secure= ; domain=127.0.0.1; path=/secure8/ ; +Set-Cookie: secure=very1 ; secure=; domain=127.0.0.1; path=/secure9/; +Set-Cookie: httpo1=value1 ; domain=127.0.0.1; path=/p1/; httponly +Set-Cookie: httpo2=value2 ; domain=127.0.0.1; path=/p2/; httponly= +Set-Cookie: httpo3=value3 ; httponly; domain=127.0.0.1; path=/p3/; +Set-Cookie: httpo4=value4 ; httponly=; domain=127.0.0.1; path=/p4/; +Set-Cookie: httponly=myvalue1 ; domain=127.0.0.1; path=/p4/; httponly +Set-Cookie: httpandsec=myvalue2 ; domain=127.0.0.1; path=/p4/; httponly; secure +Set-Cookie: httpandsec2=myvalue3; domain=127.0.0.1; path=/p4/; httponly=; secure +Set-Cookie: httpandsec3=myvalue4 ; domain=127.0.0.1; path=/p4/; httponly; secure= +Set-Cookie: httpandsec4=myvalue5 ; domain=127.0.0.1; path=/p4/; httponly=; secure= +Set-Cookie: httpandsec5=myvalue6 ; domain=127.0.0.1; path=/p4/; secure; httponly= +Set-Cookie: httpandsec6=myvalue7 ; domain=127.0.0.1; path=/p4/; secure=; httponly= +Set-Cookie: httpandsec7=myvalue8 ; domain=127.0.0.1; path=/p4/; secure; httponly +Set-Cookie: httpandsec8=myvalue9; domain=127.0.0.1; path=/p4/; secure=; httponly +Set-Cookie: partmatch=present; domain=127.0.0.1 ; path=/; +Set-Cookie:eat=this; domain=moo.foo.moo; +Set-Cookie: eat=this-too; domain=.foo.moo; +Set-Cookie: nodomainnovalue +Set-Cookie: nodomain=value; expires=Fri Feb 2 11:56:27 GMT 2035 +Set-Cookie: novalue; domain=reallysilly +Set-Cookie: test=yes; domain=foo.com; expires=Sat Feb 2 11:56:27 GMT 2030 +Set-Cookie: test2=yes; domain=se; expires=Sat Feb 2 11:56:27 GMT 2030 +Set-Cookie: magic=yessir; path=/silly/; HttpOnly +Set-Cookie: blexp=yesyes; domain=127.0.0.1; domain=127.0.0.1; expiry=totally bad; +Set-Cookie: partialip=nono; domain=.0.0.1; +Set-Cookie: withspaces= yes within and around ; +Set-Cookie: withspaces2 =before equals; +Set-Cookie: prespace= yes before; +Set-Cookie: securewithspace=after ; secure = + boo @@ -80,7 +80,7 @@ TZ=GMT http://%HOSTIP:%HTTPPORT/we/want/31 -b none -c log/jar31.txt -perl -e 'if ("%HOSTIP" !~ /127\.0\.0\.1$/) {print "Test only works for HOSTIP 127.0.0.1"; exit(1)}' +perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );" @@ -90,10 +90,10 @@ perl -e 'if ("%HOSTIP" !~ /127\.0\.0\.1$/) {print "Test only works for HOSTIP 12 ^User-Agent:.* -GET /we/want/31 HTTP/1.1 -Host: %HOSTIP:%HTTPPORT -Accept: */* - +GET /we/want/31 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + # Netscape HTTP Cookie File