Search code examples
web-servicespathhost

Parts of a URL: host, port, path


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?


Solution

  • Host: landfill.bugzilla.org

    Port: 443 (default)

    Path: bugzilla-tip

    https://www.rfc-editor.org/rfc/rfc1738