LoginSignup
1
0

More than 3 years have passed since last update.

【備忘録】wgetでつながらないのにcurlではつながる

Posted at

事象

localにtomcatを立ち上げてwgetでアクセスしたらつながらない。
試しにcurlでアクセスしたらつながる。
同じアクセス先なのになぜだろう。

原因

wgetにはプロキシ経由でアクセスする設定があるらしく、それが有効になっていた。

[ファイル]
/etc/wgetrc

[該当設定]
http_proxy=http://proxy.xxx.xxx:pp/
https_proxy=http://proxy.xxx.xxx:pp/

感想

今まで好みでwgetを使用していたが、調べてみるとcurlとwgetで差分がけっこうある。
そこら辺については他にまとめている方がいるので割愛。

1
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
1
0