0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Proxyとユーザ認証を越えてwgetする

Posted at

Basic認証が設定されたサーバから、wgetでファイル取得した時に設定したオプション

Basic認証

以下オプションを指定

  • --http-user
  • --http-passwd
$ wget --http-user={username} --http-passwd={password} {URL}

Proxy

使用している環境はProxyを経由する必要があったので、Proxy設定も追加

  • -e HTTP_PROXY
$ wget -e HTTP_PROXY={proxy_url}:{proxy_port} {URL}

まとめ

最終的に出来上がったコマンドはこんな感じ

$ wget -e HTTP_PROXY={proxy_url}:{proxy_port} --http-user={username} --http-passwd={password} {URL}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?