1999-06-11 10:21:16 +04:00
|
|
|
#
|
|
|
|
# Foo- Copy/Paste these 9 lines to generate new cases.
|
|
|
|
#
|
|
|
|
START /foo
|
|
|
|
INCLUDE generic.res
|
|
|
|
Content-Type: text/html
|
|
|
|
CRLF
|
|
|
|
INCLUDE foo.html
|
|
|
|
END
|
|
|
|
|
1999-06-24 06:29:20 +04:00
|
|
|
#
|
|
|
|
# Cookie- A test with cookie header
|
|
|
|
#
|
|
|
|
START /cookie
|
|
|
|
INCLUDE generic.res
|
|
|
|
Content-Type: text/html
|
|
|
|
Set-Cookie: foo=bar
|
1999-07-07 03:54:12 +04:00
|
|
|
Date: Wed, 28 Jul 1999 17:00:01 GMT
|
1999-06-24 06:29:20 +04:00
|
|
|
CRLF
|
|
|
|
A test with Set-Cookie header foo=bar
|
|
|
|
END
|
|
|
|
|
1999-06-11 10:21:16 +04:00
|
|
|
#
|
|
|
|
# This is a simple multipart message example
|
|
|
|
# for more complicated stuff try "complex"
|
|
|
|
#
|
|
|
|
START /multi
|
|
|
|
INCLUDE generic.res
|
|
|
|
Content-Type: multipart/mixed; boundary=ComfortablyNumb
|
|
|
|
CRLF
|
|
|
|
--ComfortablyNumb
|
|
|
|
INCLUDE foo.html
|
|
|
|
CRLF
|
|
|
|
--ComfortablyNumb
|
|
|
|
INCLUDE bar.html
|
|
|
|
--ComfortablyNumb--
|
|
|
|
END
|
|
|
|
|
|
|
|
#
|
|
|
|
# Send the help file to see how this server is used.
|
|
|
|
#
|
|
|
|
START /help
|
|
|
|
INCLUDE generic.res
|
|
|
|
CRLF
|
|
|
|
INCLUDE help.html
|
|
|
|
END
|
|
|
|
|
|
|
|
#
|
|
|
|
# A more complex variation of multipart messaging.
|
|
|
|
# If this works, every code contributor to Necko
|
|
|
|
# gets a treat from me personally :) -Gagan
|
|
|
|
#
|
|
|
|
START /complex
|
|
|
|
INCLUDE generic.res
|
|
|
|
Content-Type: multipart/mixed; boundary=TheWallFromPinkFloyd
|
|
|
|
CRLF
|
|
|
|
Preamble to multipart messages. Only clients that dont handle
|
|
|
|
multipart would see this!
|
|
|
|
CRLF
|
|
|
|
--TheWallFromPinkFloyd
|
|
|
|
Content-Type: text/plain
|
|
|
|
CRLF
|
|
|
|
The Thin Ice
|
|
|
|
Another Brick In The Wall-I
|
|
|
|
CRLF
|
|
|
|
--TheWallFromPinkFloyd
|
|
|
|
Content-Type: multipart/parallel; boundary=SideTwoOfTheWall
|
|
|
|
CRLF
|
|
|
|
--SideTwoOfTheWall
|
|
|
|
Content-Type: text/plain
|
|
|
|
CRLF
|
|
|
|
Young Lust
|
|
|
|
Goodbye Cruel World
|
|
|
|
CRLF
|
|
|
|
--SideTwoOfTheWall
|
|
|
|
Content-Type: text/plain
|
|
|
|
CRLF
|
|
|
|
Another Brick In The Wall-II
|
|
|
|
--SideTwoOfTheWall--
|
|
|
|
CRLF
|
|
|
|
--TheWallFromPinkFloyd
|
|
|
|
Content-Type: text/plain
|
|
|
|
CRLF
|
|
|
|
Another Brick In The Wall-III
|
|
|
|
--TheWallFromPinkFloyd--
|
|
|
|
CRLF
|
|
|
|
END
|
|
|
|
|
|
|
|
#
|
|
|
|
# Pragma: no-cache test
|
|
|
|
#
|
|
|
|
START /pragma
|
|
|
|
INCLUDE generic.res
|
|
|
|
Pragma: no-cache
|
|
|
|
Content-Type: text/html
|
|
|
|
CRLF
|
|
|
|
INCLUDE foo.html
|
|
|
|
END
|
|
|
|
|
|
|
|
#
|
|
|
|
# close: return a connection: close header
|
|
|
|
#
|
|
|
|
START /close
|
|
|
|
INCLUDE generic.res
|
|
|
|
Connection: Close
|
|
|
|
Content-Type: text/html
|
|
|
|
CRLF
|
|
|
|
INCLUDE foo.html
|
|
|
|
END
|