File: saverequest.aspx

package info (click to toggle)
mono 6.12.0.199%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,296,836 kB
  • sloc: cs: 11,181,803; xml: 2,850,076; ansic: 699,709; cpp: 123,344; perl: 59,361; javascript: 30,841; asm: 21,853; makefile: 20,405; sh: 15,009; python: 4,839; pascal: 925; sql: 859; sed: 16; php: 1
file content (42 lines) | stat: -rw-r--r-- 1,266 bytes parent folder | download | duplicates (10)
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
<% @Page language="c#" debug="true"%>
<html>
<script runat="server">
	void Page_Load ()
	{
		// If the request is a GET, SaveAs fails with a socket error
		// trying to get the InputStream from the request.
		// XSPWorkerRequest.ReadEntityBody is called too
		if (!IsPostBack)
			return;

		// Files as overwritten if they exist.
		Request.SaveAs ("request.txt", false);
		Request.SaveAs ("request-headers.txt", true);
	}
</script>
<body>
<form runat="server">
<asp:Button Text="click me" runat="server" />
</form>
</body>
</html>
<!--
request.txt:
__VIEWSTATE=dDwtMTk5NjUxNzkxMzs7PmyYDeLoOgzCSqBwtACVA7RAWyBP&_ctl1=click+me

request-headers.txt:
POST /saverequest.aspx?test=t HTTP/1.0
Connection: keep-alive
Keep-Alive: 300
Content-Length: 75
Content-Type: application/x-www-form-urlencoded
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding: gzip,deflate
Accept-Language: en-us,en;q=0.5
Host: 127.0.0.1:8080
Referer: http://127.0.0.1:8080/saverequest.aspx?test=t
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

__VIEWSTATE=dDwtMTk5NjUxNzkxMzs7PmyYDeLoOgzCSqBwtACVA7RAWyBP&_ctl1=click+me
-->