tags:

views:

46

answers:

1

When I try to get a file from somewhere Internet, for example ,http::/www.aaa.com/bbb.tar, everything goes smoothly. When I use lwp-download to get the same file, the app just hangs.

After some troubleshooting, I realized that it is because a proxy has been set for Firefox that makes it work.

How do I configure an HTTP proxy for lwp-download?

+4  A: 

lwp-download uses the LWP Perl package, which can use environment variables for setting up proxies. You could try setting the HTTP_PROXY environment variable to your proxy address...

Failing that, switch to something else, like cURL, which supports setting a proxy directly.

Paul Dixon
@Paul: it works ! thanks .
Haiyuan Zhang