-
Notifications
You must be signed in to change notification settings - Fork 0
/
view
47 lines (39 loc) · 1.92 KB
/
view
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
<!DOCTYPE html>
<html>
<head>
<title>Request Header Parser</title>
<link rel="shortcut icon" href="https://cdn.hyperdev.com/us-east-1%3A52a203ff-088b-420f-81be-45bf559d01b1%2Ffavicon.ico" type="image/x-icon"/>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" type="text/css">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
<h2>API Project: Request Header Parser Microservice</h2>
<h3>
Welcome to my second API project!
</h3>
<p class = "welcome">
Instructions aren't clear, but I think we're supposed to set up our website such that when the 'example usage' link is pressed,
</p>
<p class = "welcome">
the server serves up a json containing the requested information. So go ahead and click that link.
</p>
<h3>User Story: </h3>
1. I can get the IP address, preferred languages (from header <code>Accept-Language</code>)<br> and system infos (from header <code>User-Agent</code>) for my device.
<h3>Example Usage:</h3>
<p>
<a href = "https://river-narwhal.glitch.me/userinfo" target = "_blank">Click here to see your ip, language and system info</a><br>
<a href = "https://www.youtube.com/watch?v=oHg5SJYRHA0" target = "_blank">Click here for ice-cream</a>
</p>
<h3>Example Output:</h3>
<p>
<code>{"ipaddress":"::ffff:159.20.14.100","language":"en-US,en;q=0.5",<br>"software":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"}</code>
</p>
</div>
<div class="footer">
<p>
by <a href="http://www.freecodecamp.com">freeCodeCamp</a> | <a href="https://hyperdev.com/#!/remix/FCC_API_header_bplate/8c449aa9-a80c-47ad-8142-8da90f658731">Click here to Remix</a>
</p>
</div>
</body>
</html>