I have been able to successfully utilize LWP::Protocol
and the

@LWP::Protocol::http::EXTRA_SOCK_OPTS = (LocalAddr => $the_ip);

I also have been able to successfully utilize the LWP::Parallel::Protocol
modules, however I have not been able to set different ip numbers using the same method in the parallel application.

Can you provide a simple tutorial example of the Parallel method which forces the changing of ip numbers utilized on the machine when I am using the parallel processing version of LWP...

Here is a test program which works, with the exception that the ip address is
not being forced to use that which has been specified.
How therefore is the proper way to specify an ip to use?


# BEGIN SAMPLE CODE


#!/usr/bin/perl

@LWP::Protocol::http::EXTRA_SOCK_OPTS = (LocalAddr => "216.68.108.130");
use LWP::Debug qw(+);
use LWP::Parallel::UserAgent;
$ua = LWP::Parallel::UserAgent->new();

$ua->register(HTTP::Request->new(GET => "http://www.djitalk.com";));

$ua->wait(20);
print "\nDone\n";

#### END sample code


Thank you in advance for your response.

Mark Hanna
[EMAIL PROTECTED]

Reply via email to