You are reading a single comment by @Wilberforce and its replies. Click here to read the full conversation.
  • 
    function onPageRequest(req, res) {
    
    	var a = url.parse(req.url, true);
    	console.log(a);
    
      console.log(req.headers);
      console.log(req.method);
    

    headers:

    {
      "Host": "192.168.1.13",
      "Connection": "keep-alive",
      "Cache-Control": "max-age=0",
      "Upgrade-Insecure-Requests": "1",
      "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36",
      "Accept": "text/html,application/xhtml+xml,applica­tion/xml;q=0.9,image/webp,*/*;q=0.8",
      "Accept-Encoding": "gzip, deflate, sdch",
      "Accept-Language": "en-GB,en-US;q=0.8,en;q=0.6"
     }
    
About

Avatar for Wilberforce @Wilberforce started