Given protocol, username, password, hostname, port and path what is the easiest way to get a (properly encoded) URL
There are similar questions already asked but:
如果您只是连接到URL,那么请看一下此示例 。
For FTP: ftp://user:pass@hostname:port/path
For HTTP: http://hostname:port/path?pass=mypassword&username=myname
You can add as many parameters in the http url as u want, split them by & signs.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.