HTTP
HTTP GET
Basic
#
# Server-side
HTTP/1.1 302 go go go
Content-Length: 8
Location: http://user:pass@%HOSTIP:%HTTPPORT/basic-auth/user/%TESTNUMBER0002
Content-Type: text/html
Funny-head: yesyes
notreal
HTTP/1.1 200 OK
Content-Length: 6
Content-Type: text/html
Funny-head: yesyes
final
#
# Client-side
http
URL with credentials redirects to URL with different credentials
http://first:secret@%HOSTIP:%HTTPPORT/%TESTNUMBER -L
#
# Verify data after the test has been "shot"
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Authorization: Basic Zmlyc3Q6c2VjcmV0
User-Agent: curl/%VERSION
Accept: */*
GET /basic-auth/user/%TESTNUMBER0002 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Authorization: Basic dXNlcjpwYXNz
User-Agent: curl/%VERSION
Accept: */*