curl/tests/breaking_test

80 lines
1.1 KiB
Text

<testcase>
<info>
<keywords>
HTTP
HTTP GET
HTTP proxy
</keywords>
</info>
#
# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 200 OK
Unknown-header: blrub
Content-Length: 6
-foo-
</data>
<servercmd>
connection-monitor
</servercmd>
</reply>
#
# Client-side
<client>
<features>
proxy
alt-svc
Debug
</features>
<setenv>
# make debug-curl accept Alt-Svc over plain HTTP
CURL_ALTSVC_HTTP="yeah"
</setenv>
<server>
http
</server>
<name>
alt-svc fail via proxy
</name>
<command>
--proxy http://%HOSTIP:%HTTPPORT --alt-svc "%LOGDIR/altsvc-%TESTNUMBER" http://test.remote.haxx.se.%TESTNUMBER:8990
</command>
<file name="%LOGDIR/altsvc-%TESTNUMBER">
h1 test.remote.haxx.se.%TESTNUMBER 8990 h1 %HOSTIP %NOLISTENPORT "20290222 22:19:28" 0 0
</file>
<features>
proxy
</features>
</client>
#
# Verify data after the test has been "shot"
<verify>
<stdout>
HTTP/1.1 200 OK
Unknown-header: blrub
Content-Length: 6
-foo-
</stdout>
<protocol>
GET http://test.remote.haxx.se.%TESTNUMBER:8990/ HTTP/1.1
Host: test.remote.haxx.se.%TESTNUMBER:8990
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive
[DISCONNECT]
</protocol>
</verify>
</testcase>