Parts of a URL: host, port, path

petko_stankoski picture petko_stankoski · Feb 13, 2012 · Viewed 39.6k times · Source

Here is the URL:

https://landfill.bugzilla.org/bugzilla-tip/

In my code I have this:

Server server = new Server(host, port, path);

From the URL, what is host, what is port and what is path? What are the input values of the method?

Answer

user996142 picture user996142 · Feb 13, 2012

Host: landfill.bugzilla.org

Port: 443 (default)

Path: bugzilla-tip

http://tools.ietf.org/html/rfc1738