cxcc has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I have the following code:

#!/usr/bin/perl use strict; use warnings; use 5.010; use LWP::Simple; use DateTime; my $time = localtime; getstore("website.onion", "$time.txt");
I have attempted to use proxychains/torify/torsocks to download the contents of the onion website but it does not work.

How can I use LWP::Simple with a proxy or via TOR?

Replies are listed 'Best First'.
Re: How can I use a proxy/TOR with LWP:Simple?
by Anonymous Monk on Aug 09, 2017 at 00:12 UTC

    Hi,

    How to set proxy is documented in LWP::Simple/LWP::UserAgent , its just keys/values you add to %ENV