You can get the URL the browser sent at req.url. but it usually doesn't have the protocol, host, or port. The host is sometimes in the host header (often with custom port). There is a special isSecure property on https connections.
Console log the req object to see what all is there. If you want the full URL, you need to piece it together yourself. On Apr 20, 2012 6:28 PM, "Filipe" <[email protected]> wrote: > Can you just get the request.url of the http createServer() event? > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
