Monthly Archives: April 2013


In good old days, developers used to try all kinds of tricks to find the hostname, path, protocol and port etc. There were combinations of string manipulation functions and then there were regular expressions. The evolution of frameworks made the task rather simpler by providing in-build variables and/or constants for […]

Javascript : hostname and port number, if available