/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test2506
64 строки
1 KB
Daniel Stenberg
http: clear credentials better on redirect
16 апр 2026, 22:51
Не верифицирован
16 апр 2026, 22:51
b4024bf
Код
Авторство
О чём код?
<?xml version="1.0" encoding="US-ASCII"?> <testcase> <info> <keywords> HTTP cookies </keywords> </info> <reply> <data crlf="headers" nocheck="yes"> HTTP/1.1 301 redirect Date: Tue, 09 Nov 2010 14:49:00 GMT Content-Length: 3 Location: http://numbertwo.example/%TESTNUMBER0002 ok </data> <data2 crlf="headers" nocheck="yes"> HTTP/1.1 200 OK Date: Tue, 09 Nov 2010 14:49:00 GMT Content-Length: 4 yes </data2> </reply> <client> <server> http </server> <features> proxy </features> <tool> lib%TESTNUMBER </tool> <name> netrc with redirect using proxy </name> <file name="%LOGDIR/netrc2506"> machine site.example login batman password robin </file> <command> http://%HOSTIP:%HTTPPORT http://site.example/ %LOGDIR/netrc2506 </command> </client> <verify> <protocol crlf="headers"> GET http://site.example/ HTTP/1.1 Host: site.example Authorization: Basic %b64[batman:robin]b64% Accept: */* Proxy-Connection: Keep-Alive GET http://numbertwo.example/25060002 HTTP/1.1 Host: numbertwo.example Accept: */* Proxy-Connection: Keep-Alive </protocol> </verify> </testcase>