Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 791 Bytes

File metadata and controls

32 lines (22 loc) · 791 Bytes

Request Header Parser Microservice

By Luca Perico for FreeCodeCamp

User story
  1. I can get the IP address, language and operating system for my browser.


Example input:
  1. https://requestheaderparser-lucaperico.c9users.io
Example output:
  1. {"ipaddress":"66.158.156.13","language":"fr","software":"Windows NT 10.0; WOW64"}

##### Project Files * server.js: HTTP server listening for request * headerparsermodule.js: module parsing request header and returning the information * test.js:: module test
##### Howto

node server.js : start the NodeJS server

note test.js : test the module timeservice


###### The server is usually down!