LWP::Protocol::socks4(3pm) User Contributed Perl Documentation LWP::Protocol::socks4(3pm)NAME
LWP::Protocol::socks - adds support for the socks protocol and proxy facility
SYNOPSIS
use LWP::Protocol::socks;
DESCRIPTION
Use this package when you wish to use a socks proxy for your connections.
It provides some essential hooks into the LWP system to implement a socks "scheme" similar to http for describing your socks connection,
and can be used to proxy either http or https connections.
The use case is to use LWP::UserAgent's proxy method to register your socks proxy like so:
$ua->proxy([qw(http https)] => 'socks://socks.yahoo.com:1080');
Then just use your $ua object as usual!
EXAMPLES
#!/usr/local/bin/perl
use strict;
use LWP::UserAgent;
my $ua = new LWP::UserAgent(agent => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5');
$ua->proxy([qw(http https)] => 'socks://socks.yahoo.com:1080');
my $response = $ua->get("http://www.freebsd.org");
print $response->code,' ', $response->message,"
";
my $response = $ua->get("https://www.microsoft.com");
print $response->code,' ', $response->message,"
";
SEE ALSO
URI::socks4
LWP::Protocol::socks
AUTHORS
Oleg G <oleg@cpan.org>
perl v5.14.2 2012-02-12 LWP::Protocol::socks4(3pm)
Check Out this Related Man Page
LWP::Protocol::https(3) User Contributed Perl Documentation LWP::Protocol::https(3)NAME
LWP::Protocol::https - Provide https support for LWP::UserAgent
SYNOPSIS
use LWP::UserAgent;
$ua = LWP::UserAgent->new(ssl_opts => { verify_hostname => 1 });
$res = $ua->get("https://www.example.com");
DESCRIPTION
The LWP::Protocol::https module provides support for using https schemed URLs with LWP. This module is a plug-in to the LWP protocol
handling, so you don't use it directly. Once the module is installed LWP is able to access sites using HTTP over SSL/TLS.
If hostname verification is requested by LWP::UserAgent's "ssl_opts", and neither "SSL_ca_file" nor "SSL_ca_path" is set, then
"SSL_ca_file" is implied to be the one provided by Mozilla::CA. If the Mozilla::CA module isn't available SSL requests will fail. Either
install this module, set up an alternative "SSL_ca_file" or disable hostname verification.
This module used to be bundled with the libwww-perl, but it was unbundled in v6.02 in order to be able to declare its dependencies properly
for the CPAN tool-chain. Applications that need https support can just declare their dependency on LWP::Protocol::https and will no longer
need to know what underlying modules to install.
SEE ALSO
IO::Socket::SSL, Crypt::SSLeay, Mozilla::CA
COPYRIGHT
Copyright 1997-2011 Gisle Aas.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.18.2 2013-04-29 LWP::Protocol::https(3)
Hello!
Will someone out there pls help in clearifying what is really wrong with my system. I use window 98 as my operating system. I am connected to a proxy server for browsing the net. Whenever l am listening to music online l have the problem of intermitted break in which the playing will... (10 Replies)
Hi,
I can ping www.yahoo.com (then domain name server is OK) but I can not navigate by Motzila to www.yahoo.com or any other Web Site.
What can be the problem ? Mozila is configured in preference /advance to go automaticaly on WEB.
We are under RED HAT AS3.
What should I check ?
Many thanks... (1 Reply)
i have a data in afile like this
**************************************
sree
sree@yahoo.com
98662323432
*************************************
phani
phani@yahoo.com
98662323344
*************************************
i want to sort the file with respect to name.
how can i do this.
thank... (5 Replies)
Hi,
mailx -s "hi" -r "abc@yahoo.com" aaa@yahoo.com<<EOF
Hi,
~<!uuencode a.txt a.txt
EOF
the above code is sending mails, but attachment is not going instead i just get like below
~<!uuencode a.txt a.txt
Thanks. (3 Replies)
Folks;
i have a question about redirecting proxy in Apache2.2.
I have a link for wiki called http://myserver.mmm.com
I have a configuration script which redirect this link to
http://myserver.mmm.com/wiki/dashboard
I want to be able to extract "wiki" out of this link so it can be redirected... (0 Replies)
I was wondering if it was possible to take in a user's response in a perl program.
For example.
Ask user a yes or no question, and then depending on the response, print out a corresponding answer?
Thanks! (2 Replies)
Wow! Took me 30 minutes to register here using FF 3 on Windows XP. But MS IE working like a dream.
I suspect adblock was not happy. Or FF and our MS proxy settings here at work.
Anyway, greetings, and I'll get on and post my first technical question in another forum. (4 Replies)
Hello,
I was wondering if there are any https servers available for freebsd
portsnap ? I would like to use portsnap behind my companies proxy servers.
But alas they will not allow large compressed files through the proxy, which have alot of small files contained within the file. Obviously... (1 Reply)
Hi,
I would like to read content from a https site.
I have decided to use LWP module in perl. but it throwed 401 Authorization required error.
i dont want to hard code the password in my perl code. Is there any way to achieve the authentication without hardcoding the password.
Thanks,... (1 Reply)
Hello, i setup an open socks proxy on my remote vps:
ssh -f -N -D 0.0.0.0:1080 localhost
and then allowed only connections from IP of my home computer
iptables -A INPUT --src myhomeip -p tcp --dport 1080 -j ACCEPT
iptables -A INPUT -p tcp --dport 1080 -j REJECT
but it appears that im... (3 Replies)
Please what is the most simple way to run some perl command via proxy?
i have perl script an in it:
POST **something**
GET **something**
what should i do before it so its proxified via proxy without authentiffication, like 1.2.3.4:1080?
any way to run whole .pl script via proxy? (3 Replies)
I have a list of ip socks / port(eg: 192.168.0.1 80). I would like to write a bash to test automatically these addresses in a loop with firefox. The problem is that firefox process stays alive even when firefox does not work because of wrong network settings. So I want to kill the process when the... (3 Replies)