今天無意翻了一下lftp的manpage發現它原來可以支援http/https通訊協定
看來以後要抓http的檔不只nc/wget/curl/fetch/lynx跟outian寫的perl版本wget了.
NAME
lftp - Sophisticated file transfer program
DESCRIPTION
lftp is a program that allows sophisticated ftp and http connections to
other hosts. If host is specified then lftp will connect to that host
otherwise a connection has to be established with the open command.
lftp can handle six file access methods - ftp, ftps, http, https, hftp,
fish and file (https and ftps are only available when lftp is compiled
with openssl library). You can specify the method to use in `open URL'
command, e.g. `open http://www.us.kernel.org/pub/linux'. hftp is ftp-
over-http-proxy protocol. It can be used automatically instead of ftp
if ftp:proxy is set to `http://proxy[:port]'. Fish is a protocol work-
ing over an ssh connection.
----------------------------------------
$lftp http://home.so-net.net.tw
lftp home.so-net.net.tw:/> get username/file.zip
這樣可以直接抓http://home.so-net.net.tw/username/file.zip這個檔案
或者先執行lftp再打open也行
$lftp
lftp :~> open http://home.so-net.net.tw
lftp home.so-net.net.tw:/> get username/file.zip
看來它的使用方法不能像wget一樣,直接wget後面接個網址就行了.
- Aug 25 Sat 2007 00:46
Lftp manpage
close
全站熱搜
留言列表
發表留言