mirror of
https://github.com/curl/curl.git
synced 2026-06-18 22:25:39 +03:00
56 lines
940 B
XML
56 lines
940 B
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
HTTP proxy
|
|
cookies
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data crlf="headers">
|
|
HTTP/1.1 200 OK
|
|
Server: test-server/fake
|
|
Content-Length: 21
|
|
|
|
This server says moo
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
<name>
|
|
Cookie from file with control octet in value is rejected
|
|
</name>
|
|
<command>
|
|
http://example.fake/%TESTNUMBER -b %LOGDIR/injar%TESTNUMBER -x %HOSTIP:%HTTPPORT
|
|
</command>
|
|
<file name="%LOGDIR/injar%TESTNUMBER">
|
|
example.fake FALSE / FALSE 0 clean good
|
|
example.fake FALSE / FALSE 0 bad %hex[ba%07d]hex%
|
|
</file>
|
|
<features>
|
|
cookies
|
|
proxy
|
|
</features>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol crlf="headers">
|
|
GET http://example.fake/%TESTNUMBER HTTP/1.1
|
|
Host: example.fake
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
Proxy-Connection: Keep-Alive
|
|
Cookie: clean=good
|
|
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|