URL的一部分:主机,端口,路径 [英] Parts of a URL: host, port, path

查看:112
本文介绍了URL的一部分:主机,端口,路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是网址:

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

在我的代码中,我有这个:

In my code I have this:

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

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

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

推荐答案

主机:landfill.bugzilla.org

Host: landfill.bugzilla.org

端口:443(默认)

路径:bugzilla-tip

Path: bugzilla-tip

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

这篇关于URL的一部分:主机,端口,路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆