Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by cxcc (Initiate)
on Aug 09, 2017 at 00:03 UTC ( [id://1197058]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1197058]
Approved by Athanasius
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-24 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found