/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test287
57 строк
1 KB
Stefan Eissing
proxy: chunked response, error code
25 мар 2026, 14:16
Не верифицирован
25 мар 2026, 14:16
a186ecf
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> HTTP HTTP CONNECT HTTP proxy proxytunnel </keywords> </info> # Server-side <reply> <connect crlf="headers" nocheck="yes"> HTTP/1.1 405 Method Not Allowed swsclose And you should ignore this data. </connect> </reply> # Client-side <client> <server> http </server> <name> HTTP proxy CONNECT with custom User-Agent header </name> <command> http://test.remote.example.com.%TESTNUMBER:%HTTPPORT/path/%TESTNUMBER -H "User-Agent: looser/2015" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel --proxy-header "User-Agent: looser/2007" </command> <features> proxy </features> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="headers"> CONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1 Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT Proxy-Connection: Keep-Alive User-Agent: looser/2007 </protocol> # CURLE_COULDNT_CONNECT <errorcode> 7 </errorcode> <stdout crlf="headers"> HTTP/1.1 405 Method Not Allowed swsclose </stdout> </verify> </testcase>