<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
HTTP
cookies
</keywords>
</info>
<reply>
<data nocheck="yes">
HTTP/1.1 302 go go go
Content-Length: 0
Set-Cookie: nopath=update; domain=example.com;
Location: https://example.com:%HTTPSPORT/%TESTNUMBER0002

</data>
<data2 nocheck="yes">
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 0

</data2>
</reply>

<client>
<server>
http
https
</server>
<name>
Cookies without path read from file and secure
</name>
<command>
-k -L http://example.com:%HTTPPORT -b %LOGDIR/heads%TESTNUMBER.txt --resolve example.com:%HTTPPORT:%HOSTIP --resolve example.com:%HTTPSPORT:%HOSTIP
</command>

# We create this file before the command is invoked!
<file name="%LOGDIR/heads%TESTNUMBER.txt">
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Funny-head: yesyes
Set-Cookie: nopath=import; domain=example.com; Secure;
Set-Cookie: withpath=name; domain=example.com; Secure; path="/";

</file>
<features>
cookies
</features>
</client>

<verify>
<protocol crlf="headers">
GET / HTTP/1.1
Host: example.com:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

GET /%TESTNUMBER0002 HTTP/1.1
Host: example.com:%HTTPSPORT
User-Agent: curl/%VERSION
Accept: */*
Cookie: withpath=name; nopath=import

</protocol>
</verify>
</testcase>
