Bug? Gopher + LWP + TOR does not work I can query a gopher resource using LWP without any problem. But as soon as I wrap the perl process with a TOR client, the connection does not work anymore - it outputs error 500. However, if I call lynx using the backtick operator, I can query the gopher resource, with and without TOR. Does work: ./test.pl Does not work: torify -- ./test.pl Example code "test.pl" #!/usr/bin/perl use LWP::Simple; sub getWithStatus { my $url = shift; my $content; open my $RAM, '>', \$content; my $stdoutsaved = select; select *$RAM; my $status = getprint( $url ); select $stdoutsaved; close $RAM; return $status, $content; } sub Main { $url = "gopher://whois.denic.de:43/0test.de"; my( $status, $content ) = getWithStatus( $url ); if( $status ne RC_OK ) { die "Get $url failed with HTTP status: $status"; } print $content; } Main Versions: $uname -a Linux 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) x86_64 GNU/Linux $perl -v This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-linux-gnu-thread-multi (with 73 registered patches, see perl -V for more detail) $torify --version Torsocks 2.2.0 libwww-perl has version 6.15-1 according to aptitude.