Skip to content

Instantly share code, notes, and snippets.

@bagder
Created April 17, 2026 13:46
Show Gist options
  • Select an option

  • Save bagder/fb28f9fcee663624c26d06775a47fad0 to your computer and use it in GitHub Desktop.

Select an option

Save bagder/fb28f9fcee663624c26d06775a47fad0 to your computer and use it in GitHub Desktop.
test1967
<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>
# Server-side
<reply>
# Post-redirect
<data2 crlf="headers">
HTTP/1.1 200 OK
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
Content-Type: text/html; charset=iso-8859-1
Content-Length: 23
This IS the real page!
</data2>
<data crlf="headers" nocheck="yes">
HTTP/1.1 301 Redirect
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
Content-Type: text/html; charset=iso-8859-1
Content-Length: 3
Location: http://host.corp.com/%TESTNUMBER0002
go
</data>
</reply>
# Client-side
<client>
<server>
http
</server>
<name>
redirect test
</name>
<command>
--resolve host.evil.com:%HTTPPORT:%HOSTIP --resolve host.corp.com:%HTTPPORT:%HOSTIP -L http://host.evil.com:%HTTPPORT/%TESTNUMBER
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<protocol crlf="headers">
GET /%TESTNUMBER HTTP/1.1
Host: host.evil.com:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
GET /%TESTNUMBER0002 HTTP/1.1
Host: host.corp.com:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
</protocol>
</verify>
</testcase>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment