-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml.go
More file actions
45 lines (37 loc) · 904 Bytes
/
Copy pathhtml.go
File metadata and controls
45 lines (37 loc) · 904 Bytes
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
package main
var htmlString = `<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Request Data</title>
<meta name="description" content="Proof of concept to know how much data you can get from a redirect from social media websites.">
<meta name="author" content="SitePoint">
</head>
<body>
<h1>Description</h1>
<p>Proof of concept to know how much data you can get from a redirect from social media applications.</p>
<hr/>
<h3>Hostname</h3>
<ul>
<li>{{ .Hostname }}</li>
</ul>
<h3>Method</h3>
<ul>
<li>{{ .Method }}</li>
</ul>
<h3>Headers</h3>
<ul>
{{ range $key, $value := .Headers }}
<li>{{ $key }}: {{ $value }}</li>
{{ end }}
</ul>
{{ if .QueryParams }}
<h3>Query params</h3>
<ul>
{{ range $key, $value := .QueryParams }}
<li>{{ $key }}: {{ $value }}</li>
{{ end }}
</ul>
{{ end }}
</body>
</html>`