/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test1649
55 строк
713 B
Daniel Stenberg
transfer: clear referer when set to NULL
26 май 2026, 11:04
Не верифицирован
26 май 2026, 11:04
862e8a7
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> HTTP Referer </keywords> </info> # Server-side <reply> # this is returned first since we get no proxy-auth <data crlf="headers" nocheck="yes"> HTTP/1.1 200 OK Content-Length: 6 hello </data> </reply> # Client-side <client> <server> http </server> <tool> lib%TESTNUMBER </tool> <name> Set referer first then NULL it </name> <command> http://%HOSTIP:%HTTPPORT </command> </client> # Verify data after the test has been "shot" <verify> <protocol crlf="headers"> GET / HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* Referer: https://secret.example.com/ GET / HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* </protocol> </verify> </testcase>