Node.js: Are schemaless URIs supported by request module? -


are someway schemaless uris supported request module?

i can't find reference in docs, nor googling.

trying request schemaless uri (//www.example.com/), grumbles "error: invalid uri"...

these called protocol relative urls. not recommended because ssl encouraged everywhere.

when running node script there no base scheme opposed when running in browser. request has no way of knowing scheme use.

> url.parse("//www.example.com").protocol null 

Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -