/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test1077
73 строки
1 KB
Viktor Szakats
tests/data: add XML prolog to test files
12 дек 2025, 19:17
Не верифицирован
12 дек 2025, 19:17
b5ea073
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> FTP HTTP HTTP/1.0 HTTP GET HTTP proxy </keywords> </info> # Server-side <reply> <data crlf="headers"> HTTP/1.0 200 OK Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Content-Type: text/plain Content-Length: 9 Funny-head: yesyes Proxy-Connection: Keep-Alive contents </data> <data2 crlf="headers"> HTTP/1.0 200 OK Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Content-Type: text/plain Content-Length: 9 Funny-head: yesyes Proxy-Connection: Keep-Alive contents </data2> </reply> # Client-side <client> <server> http </server> <features> ftp proxy </features> <name> FTP over HTTP proxy with downgrade to HTTP 1.0 </name> <command> -x %HOSTIP:%HTTPPORT ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER0002 </command> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="headers"> GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* Proxy-Connection: Keep-Alive GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER0002 HTTP/1.0 Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* Proxy-Connection: Keep-Alive </protocol> </verify> </testcase>