forked from andrewf/pcap2har
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmissing_response.pcap.har
215 lines (215 loc) · 13 KB
/
missing_response.pcap.har
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
{
"log": {
"browser": {
"name": "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 ( .NET CLR 3.5.30729; .NET4.0E)",
"version": "mumble"
},
"creator": {
"name": "pcap2har",
"version": "0.1"
},
"entries": [
{
"cache": {},
"pageref": "page_0",
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"name": "accept",
"value": "text/xml,application/xml,application/xhtml+xml,*/*;q=0.1"
},
{
"name": "accept-charset",
"value": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"
},
{
"name": "accept-language",
"value": "en-us,en;q=0.5"
},
{
"name": "connection",
"value": "keep-alive"
},
{
"name": "cookie",
"value": "__utma=191645736.1924309581.1277516327.1278893750.1278979018.10; __utmz=191645736.1278979018.10.3.utmcsr=wiki.wireshark.org|utmccn=(referral)|utmcmd=referral|utmcct=/Development/LibpcapFileFormat; __qca=P0-1746884488-1277513743262"
},
{
"name": "host",
"value": "andrewfleenor.users.sourceforge.net"
},
{
"name": "keep-alive",
"value": "300"
},
{
"name": "referer",
"value": "http://andrewfleenor.users.sourceforge.net/fhs/fhs.xml"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 ( .NET CLR 3.5.30729; .NET4.0E)"
}
],
"headersSize": -1,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [],
"url": "http://andrewfleenor.users.sourceforge.net/fhs/fhs.xsl"
},
"response": {
"bodySize": 6511,
"content": {
"compression": 0,
"mimeType": "text/xml",
"size": 6511,
"text": "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n<xsl:stylesheet version=\"2.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\r\n\r\n<xsl:output method=\"html\" indent=\"yes\" encoding=\"UTF-8\"/>\r\n\r\n<!-- The main template used for each file or directory (since directories are also files) -->\r\n<!-- THIS IS THE INTERESTING PART -->\r\n<xsl:template match=\"file\" name=\"dir-template\">\r\n <xsl:param name=\"parent-path\" /> <!-- Must include trailing slash, if not empty -->\r\n <!-- Parent path parameter allows us to calculate the absolute paths -->\r\n <!-- absolute-name = parent-path + name + (if directory and name != '/' then add '/')\r\n It must end with a slash it it's a directory, but not if it's a plain file -->\r\n <xsl:variable name=\"absolute-name\"> <!-- The absolute name of the current file, all on one line to eliminate whitespace -->\r\n <xsl:value-of select=\"$parent-path\" /><xsl:value-of select=\"name\" /><xsl:if test=\"children and name != '/'\">/</xsl:if></xsl:variable>\r\n <!-- XHTML output -->\r\n <div class=\"file\" >\r\n <!-- Title/Summmary Line -->\r\n <span class=\"summary\">\r\n <!-- onClick attribute depends on whether current file has children... -->\r\n <xsl:attribute name=\"onClick\">\r\n <xsl:choose>\r\n <!-- if it's a director with non-empty description or children, make it expandable -->\r\n <xsl:when test=\"(children and desc) or children/file\">toggleDirExpansion('<xsl:value-of select=\"$absolute-name\" />')</xsl:when>\r\n <!-- if it's a directory with nothing in it, make sure onClick is empty -->\r\n <xsl:when test=\"children\"></xsl:when>\r\n <!-- if it's a file with non-empty desc -->\r\n <xsl:when test=\"desc\">toggleFileExpansion('<xsl:value-of select=\"$absolute-name\" />')</xsl:when>\r\n </xsl:choose>\r\n </xsl:attribute>\r\n <!-- ...as does the original source of the image -->\r\n <img>\r\n <xsl:attribute name=\"src\">\r\n <xsl:choose>\r\n <!-- if it's a directory with something to expand, indicate that -->\r\n <xsl:when test=\"(children and desc) or children/file\">dir-closed.png</xsl:when>\r\n <!-- if it's a directory with nothing in it -->\r\n <xsl:when test=\"children\">dir-empty.png</xsl:when>\r\n <!-- if it's a file with a description -->\r\n <xsl:when test=\"desc\">file-closed.png</xsl:when>\r\n <!-- if it's a file with nothing in it it-->\r\n <xsl:otherwise>file-empty.png</xsl:otherwise>\r\n </xsl:choose>\r\n </xsl:attribute>\r\n <xsl:attribute name=\"id\"><xsl:value-of select=\"$absolute-name\" />:img</xsl:attribute>\r\n </img>\r\n <!-- Now just do the name and summary -->\r\n <b><xsl:value-of select=\"name\" /></b>\r\n (<xsl:value-of select=\"$absolute-name\" />): <xsl:value-of select=\"summary\" />\r\n </span>\r\n <!-- This is the collapsible part -->\r\n <div class=\"innerbox\" style=\"display:none\"> <!--must already have explicit display property for toggleDisplay to work -->\r\n <!-- Must have appropriate ID attribute to be collapsed -->\r\n <xsl:attribute name=\"id\">\r\n <xsl:value-of select=\"$absolute-name\" />:inner</xsl:attribute> <!-- Again, one line to avoid whitespace -->\r\n <!-- Long description, if it exists -->\r\n <xsl:if test=\"desc\">\r\n <div class=\"description\">\r\n <!-- if the description does not include a p element, create one >\r\n < I'm not responsible for what happens if p's and unenclosed text are mixed in a description -->\r\n <xsl:choose>\r\n <xsl:when test=\"desc/p\">\r\n <xsl:copy-of select=\"desc/*\"/> <!-- copy all p elements -->\r\n </xsl:when>\r\n <xsl:otherwise>\r\n <p><xsl:value-of select=\"desc\" /></p>\r\n </xsl:otherwise>\r\n </xsl:choose>\r\n </div>\r\n </xsl:if>\r\n <!-- Recursively apply the template to the child files (assuming they exist), passing this directory as a parameter -->\r\n <xsl:for-each select=\"children/file\">\r\n <xsl:call-template name=\"dir-template\">\r\n <xsl:with-param name=\"parent-path\" select=\"$absolute-name\" />\r\n </xsl:call-template>\r\n </xsl:for-each>\r\n <!-- Done with content -->\r\n </div> <!-- class=\"innerbox\" -->\r\n </div> <!-- class=\"dir\" -->\r\n</xsl:template>\r\n\r\n<!-- Template for the whole document -->\r\n<xsl:template match=\"/\">\r\n <html>\r\n <head>\r\n <title>Interactive Linux Filesystem Explanation</title>\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"fhs.css\" />\r\n <script type=\"text/javascript\" src=\"fhs.js\"></script>\r\n </head>\r\n <body onLoad=\"toggleDirExpansion('/')\">\r\n \r\n <!-- The intro and stuff -->\r\n <div id=\"introduction\" >\r\n <div style=\"font-size: 180%; text-align: center; width: 100%;\">Interactive Linux Filesystem Explanation</div>\r\n <div style=\"font-size: 130%; text-align: center; width: 100%;\">Introduction</div>\r\n <xsl:copy-of select=\"filesystem/intro\" />\r\n </div>\r\n \r\n <!-- the actual filesystem -->\r\n <div id=\"filesystem\">\r\n <div style=\"font-size: 130%; text-align: center; width: 100%;\">Explanation</div>\r\n <xsl:for-each select=\"filesystem/file\">\r\n <xsl:call-template name=\"dir-template\">\r\n <xsl:with-param name=\"parent-path\" select=\"''\" />\r\n </xsl:call-template>\r\n </xsl:for-each>\r\n </div>\r\n \r\n <!-- MLA references -->\r\n <div id=\"references\">\r\n <div style=\"font-size: 150%; text-align: center; width: 100%;\">Works Cited</div>\r\n <ul>\r\n <xsl:for-each select=\"filesystem/references/ref\">\r\n <li><xsl:value-of select=\".\" /></li>\r\n </xsl:for-each>\r\n </ul>\r\n </div>\r\n \r\n <!-- copyright notice -->\r\n <div style=\"text-align: center; width:100%; font-weight: bold; font-size: 11pt;\">\r\n \u00a9Andrew Fleenor, 2010\r\n </div>\r\n \r\n </body></html>\r\n</xsl:template>\r\n\r\n</xsl:stylesheet>"
},
"cookies": [],
"headers": [
{
"name": "accept-ranges",
"value": "bytes"
},
{
"name": "cache-control",
"value": "max-age=172800"
},
{
"name": "connection",
"value": "keep-alive"
},
{
"name": "content-length",
"value": "6511"
},
{
"name": "content-type",
"value": "text/xml"
},
{
"name": "date",
"value": "Wed, 28 Jul 2010 03:31:55 GMT"
},
{
"name": "etag",
"value": "\"196f-48918578e330a\""
},
{
"name": "expires",
"value": "Fri, 30 Jul 2010 03:31:55 GMT"
},
{
"name": "last-modified",
"value": "Tue, 15 Jun 2010 21:32:28 GMT"
},
{
"name": "server",
"value": "nginx/0.7.63"
}
],
"headersSize": -1,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2010-07-28T03:31:53.275921Z",
"time": 4065,
"timings": {
"blocked": -1,
"connect": 104,
"dns": -1,
"receive": 3738,
"send": 0,
"wait": 222
}
},
{
"cache": {},
"pageref": "page_1",
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"name": "accept",
"value": "*/*"
},
{
"name": "accept-charset",
"value": "ISO-8859-1,utf-8;q=0.7,*;q=0.7"
},
{
"name": "accept-language",
"value": "en-us,en;q=0.5"
},
{
"name": "connection",
"value": "keep-alive"
},
{
"name": "cookie",
"value": "__utma=191645736.1924309581.1277516327.1278893750.1278979018.10; __utmz=191645736.1278979018.10.3.utmcsr=wiki.wireshark.org|utmccn=(referral)|utmcmd=referral|utmcct=/Development/LibpcapFileFormat; __qca=P0-1746884488-1277513743262"
},
{
"name": "host",
"value": "andrewfleenor.users.sourceforge.net"
},
{
"name": "keep-alive",
"value": "300"
},
{
"name": "referer",
"value": "http://andrewfleenor.users.sourceforge.net/fhs/fhs.xml"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 ( .NET CLR 3.5.30729; .NET4.0E)"
}
],
"headersSize": -1,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [],
"url": "http://andrewfleenor.users.sourceforge.net/fhs/fhs.js"
},
"response": null,
"startedDateTime": "2010-07-28T03:31:57.359355Z",
"time": -1,
"timings": {
"blocked": -1,
"connect": 0,
"dns": -1,
"receive": -1,
"send": 0,
"wait": -1
}
}
],
"pages": [
{
"id": "page_0",
"pageTimings": {
"onContentLoad": -1,
"onLoad": -1
},
"startedDateTime": "2010-07-28T03:31:53.275921Z",
"title": "http://andrewfleenor.users.sourceforge.net/fhs/fhs.xsl"
},
{
"id": "page_1",
"pageTimings": {
"onContentLoad": -1,
"onLoad": -1
},
"startedDateTime": "2010-07-28T03:31:57.359355Z",
"title": "unknown title"
}
],
"version": "1.1"
}
}