Is there a way to find out the fully qualified url in Nodejs?
Basically I want to crawl a website using my custom node.js based crawler. I fetch all the anchor tags and make http requests on them. The problem is that I am not able to figure out the exact url that I need to make the request to. Please help
Example URLS
http://aaa.com/bbb
//aaa.com/bbb or //aaa/bbb
/aaa.com/bbb or /aaa/bbb
aaa.com/bbb or aaa/bbb
url.join()?url.join()+url.resolve()can do the magic, just provide some examples where you can not use them