/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test756
74 строки
1 KB
Jay Satiro
tool_cb_hdr: suppress header output when --out-null
12 янв 2026, 23:36
12 янв 2026, 23:36
3652127
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> HTTP </keywords> </info> # Server-side <reply> <data nocheck="yes"> HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Response: 1 Content-Type: text/html Content-Length: 8 Hello1! </data> <data2> HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Response: 2 Content-Type: text/html Content-Length: 8 Hello2! </data2> </reply> # Client-side <client> <server> http </server> <features> </features> <name> mix --output and --out-null </name> <command> http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER0002 --out-null -o - </command> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="headers"> GET /want/%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* GET /want/%TESTNUMBER0002 HTTP/1.1 Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* </protocol> <stdout> HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Response: 2 Content-Type: text/html Content-Length: 8 Hello2! </stdout> </verify> </testcase>