Changelog
+Daniel Fandrich (9 Apr 2008)
+- Added test case 1024 to test a scenario similar to the one reported
+ by Ben Combee where libcurl would send the wrong cookie to a redirected
+ server. libcurl was doing the right thing in this test case.
+
Michal Marek (7 Apr 2008)
- Fix the MIT / Heimdal check for good:
Define HAVE_GSSMIT if <gssapi/{gssapi.h,gssapi_generic.h,gssapi_krb5.h}> are
--- /dev/null
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+followlocation
+cookies
+</keywords>
+</info>
+
+# Server-side
+<reply>
+<data>
+HTTP/1.1 301 This is a weirdo text message\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Location: ../data/10240002.txt\r
+Set-Cookie: firstcookie=want; path=/want/\r
+Content-Length: 69\r
+\r
+This server reply is for testing a Location: following with cookies
+
+</data>
+<data2>
+HTTP/1.1 301 This is a weirdo text message\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Location: ../want/10240003.txt\r
+Set-Cookie: nextcookie=data; path=/data/\r
+Content-Length: 69\r
+\r
+This server reply is for testing a Location: following with cookies
+
+</data2>
+<data3>
+HTTP/1.1 200 Followed here fine\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Content-Length: 52\r
+\r
+If this is received, the location following worked
+
+</data3>
+<datacheck>
+HTTP/1.1 301 This is a weirdo text message\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Location: ../data/10240002.txt\r
+Set-Cookie: firstcookie=want; path=/want/\r
+Content-Length: 69\r
+\r
+HTTP/1.1 301 This is a weirdo text message\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Location: ../want/10240003.txt\r
+Set-Cookie: nextcookie=data; path=/data/\r
+Content-Length: 69\r
+\r
+HTTP/1.1 200 Followed here fine\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Content-Length: 52\r
+\r
+If this is received, the location following worked
+
+</datacheck>
+</reply>
+
+# Client-side
+<client>
+<server>
+http
+</server>
+ <name>
+HTTP Location: following with cookies
+ </name>
+ <command>
+http://%HOSTIP:%HTTPPORT/want/1024 -L -c log/jar1024
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^User-Agent:.*
+</strip>
+<protocol>
+GET /want/1024 HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
+Accept: */*\r
+\r
+GET /data/10240002.txt HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
+Accept: */*\r
+\r
+GET /want/10240003.txt HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
+Accept: */*\r
+Cookie: firstcookie=want\r
+\r
+</protocol>
+</verify>
+</testcase>