DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
#
# Foo- Copy/Paste these 9 lines to generate new cases. 
#
START /foo
INCLUDE generic.res
Content-Type: text/html
CRLF
INCLUDE foo.html
END

#
# Cookie- A test with cookie header
#
START /cookie
INCLUDE generic.res
Content-Type: text/html
Set-Cookie: foo=bar
Date: Wed, 28 Jul 1999 17:00:01 GMT
CRLF
A test with Set-Cookie header foo=bar
END

#
# 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

#
# Redirect testing
#
START /redirect
HTTP/1.1 301 Moved to a new location
Server: HTTP Test Server/1.1
Location: http://home.netscape.com/
Content-Type: text/html
CRLF
END

#
# Post example...
#
START /post
INCLUDE generic.res
Content-Type: text/html
CRLF
INCLUDE post.html
END

#
# Do other stuff with echoing the request as well... 
#
START /echo
INCLUDE generic.res
Content-Type: text/html
CRLF
<HTML>
<H2>Echo request example</H2>
<HR>
This should echo all the request headers-<BR>
<PRE>
ECHO
</PRE>
<HR>
This should echo only the user-agent header- (this is case sensitive!)<BR>
<PRE>
ECHO User-Agent
</PRE>
END