+<testcase>
# Test case inspired by this question on stackoverflow:
#
# http://stackoverflow.com/questions/10017165/use-libcurl-with-bluecoat-cookie-proxy
#
-<testcase>
<info>
<keywords>
HTTP
# Server-side
<reply>
<data>
-HTTP/1.1 407 Me not know you swsbounce\r
-Date: Tue, 25 Sep 2001 19:37:44 GMT\r
-Content-Type: text/html\r
-Set-Cookie: proxycookie=weirdo; Path=/\r
-Cache-control: private\r
-Content-Length: 62\r
-Proxy-Authenticate: Basic realm="moo on you"\r
-\r
+HTTP/1.1 407 Me not know you swsbounce
+Date: Tue, 25 Sep 2001 19:37:44 GMT
+Content-Type: text/html
+Set-Cookie: proxycookie=weirdo; Path=/
+Cache-control: private
+Content-Length: 62
+Proxy-Authenticate: Basic realm="moo on you"
+
This server reply is for testing a simple cookie test case...
</data>
<data1>
-HTTP/1.1 200 Fine!\r
-Content-Type: text/html\r
-Content-Length: 6\r
-\r
+HTTP/1.1 200 Fine!
+Content-Type: text/html
+Content-Length: 6
+
hello
</data1>
<datacheck>
-HTTP/1.1 407 Me not know you swsbounce\r
-Date: Tue, 25 Sep 2001 19:37:44 GMT\r
-Content-Type: text/html\r
-Set-Cookie: proxycookie=weirdo; Path=/\r
-Cache-control: private\r
-Content-Length: 62\r
-Proxy-Authenticate: Basic realm="moo on you"\r
-\r
-HTTP/1.1 200 Fine!\r
-Content-Type: text/html\r
-Content-Length: 6\r
-\r
+HTTP/1.1 407 Me not know you swsbounce
+Date: Tue, 25 Sep 2001 19:37:44 GMT
+Content-Type: text/html
+Set-Cookie: proxycookie=weirdo; Path=/
+Cache-control: private
+Content-Length: 62
+Proxy-Authenticate: Basic realm="moo on you"
+
+HTTP/1.1 200 Fine!
+Content-Type: text/html
+Content-Length: 6
+
hello
</datacheck>
^User-Agent:.*
</strip>
<protocol>
-GET http://z.x.com/1331 HTTP/1.1\r
-Host: z.x.com\r
-Accept: */*\r
-Proxy-Connection: Keep-Alive\r
-\r
-GET http://z.x.com/1331 HTTP/1.1\r
-Proxy-Authorization: Basic bXluYW1lOm15cGFzc3dvcmQ=\r
-Host: z.x.com\r
-Accept: */*\r
-Proxy-Connection: Keep-Alive\r
-Cookie: proxycookie=weirdo\r
-\r
+GET http://z.x.com/1331 HTTP/1.1
+Host: z.x.com
+Accept: */*
+Proxy-Connection: Keep-Alive
+
+GET http://z.x.com/1331 HTTP/1.1
+Host: z.x.com
+Proxy-Authorization: Basic bXluYW1lOm15cGFzc3dvcmQ=
+Accept: */*
+Proxy-Connection: Keep-Alive
+Cookie: proxycookie=weirdo
+
</protocol>
</verify>
</testcase>