这是网址:

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

在我的代码中,我有:
Server server = new Server(host, port, path);

从URL,什么是主机,什么是端口,什么是路径?该方法的输入值是多少?

最佳答案

主持人:landfill.bugzilla.org

端口:443(默认)

路径:bugzilla-tip

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

关于web-services - URL的一部分:主机,端口,路径,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9260218/

10-11 00:27