Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lwp::protocol::socks4(3pm) [debian man page]

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.16.2 2012-02-18 LWP::Protocol::https(3)
Man Page

14 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Windows Buffering during playing

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)
Discussion started by: kayode
10 Replies

2. Linux

connecting to INTERNET

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)
Discussion started by: big123456
1 Replies

3. Shell Programming and Scripting

file sorting

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)
Discussion started by: phani_sree
5 Replies

4. UNIX for Advanced & Expert Users

Mailx Command

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)
Discussion started by: shahnazurs
3 Replies

5. Shell Programming and Scripting

Help with proxy redirecting

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)
Discussion started by: moe2266
0 Replies

6. Shell Programming and Scripting

Taking user response in perl

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)
Discussion started by: silkiechicken
2 Replies

7. What is on Your Mind?

1st Post, and it's a moan :(

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)
Discussion started by: Beast Of Bodmin
4 Replies

8. BSD

FreeBSD Postsnap via https

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)
Discussion started by: KaneCitizen
1 Replies

9. IP Networking

How i can setup socks 5 in CentOS?

how i can setup socks 5 in centos? (1 Reply)
Discussion started by: hesamii
1 Replies

10. Shell Programming and Scripting

Compare two files and print using awk

I have 2 files: email_1.out 1 abc@yahoo.com 2 abc_1@yahoo.com 3 abc_2@yahoo.com data_1.out <tr> 1 MAIL # 1 TO src_1 </tr> <tr><td class="hcol">col_id</td> <td class="hcol">test_dt</td> <td class="hcol">user_type</td> <td class="hcol">ct</td></tr> <tr><td... (1 Reply)
Discussion started by: sol_nov
1 Replies

11. Web Development

Using LWP without hard coding password

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)
Discussion started by: pandeesh
1 Replies

12. UNIX for Dummies Questions & Answers

Can't connect through ssh socks proxy to certain sites

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)
Discussion started by: postcd
3 Replies

13. Shell Programming and Scripting

Perl: How to run an POST/GET command via proxy?

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)
Discussion started by: postcd
3 Replies

14. Shell Programming and Scripting

Proxy socks tester issue

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)
Discussion started by: arpagon
3 Replies