Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: binding to a vhost using LWP

by IlyaM (Parson)
on Apr 07, 2003 at 14:59 UTC ( #248625=note: print w/ replies, xml ) Need Help??


in reply to binding to a vhost using LWP

If you want to force LWP to connect via some specific IP/port you can set this IP/port as an address of proxy. For example:

use LWP::UserAgent; use HTTP::Request::Common; my $ua = LWP::UserAgent->new; $ua->proxy(http => 'http://1.2.3.4:5678/'); my $response = $ua->request(GET 'http://my.domain/path');

--
Ilya Martynov, ilya@iponweb.net
CTO IPonWEB (UK) Ltd
Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
Personal website - http://martynov.org


Comment on Re: binding to a vhost using LWP
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://248625]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2014-08-28 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls