wget如何访问用户名带"@"的FTP站点

| | Comments (0) | TrackBacks (0)
一般说来,我们是用
"wget username:password@Site/dir/filename.ext" 来从FTP站点下载文件,但是如果用户名包含"@"的
话,再用这个方法就无法登陆了,比如, 一个FTP站点,用户名是demo@test.com , 密码是pwd12345, FTP的
域名是test.ms.com,那我们如果用
"wget demo@test.com:pwd12345@test.ms.com/up/data.rar" 来下载这个 data.rar 文件的话, wget 会把 "demo" 作为用户名, "test.com" 作为站点的域名, "pwd12345" 作为端口号,所以就会报告"Invalid port specification" 错误.
怎么办,我们用 ACS 码的"%40"来替换"@"符号:

"wget demo%40test.com:pwd12345@test.ms.com/up/data.rar"

Categories

0 TrackBacks

Listed below are links to blogs that reference this entry: wget如何访问用户名带"@"的FTP站点.

TrackBack URL for this entry: /huiying.cgi/131.

Leave a comment

About this Entry

This page contains a single entry by pOweRK6 published on January 30, 2007 5:20 PM.

终于找到了房子! was the previous entry in this blog.

Microsoft HMC 3.5 Project Day 1 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.2-en