in reply to binding to a vhost using LWP

It looks like LWP::Protocol::http.pm will let you use a variable called @EXTRA_SOCK_OPTS to do what you want. I think the code would be:
use LWP::Protocol::http; @LWP::Protocol::http::EXTRA_SOCK_OPTS = (LocalAddr => "$vhost:$port");
then do the normal LWP stuff. Not tested in any way.

Replies are listed 'Best First'.
Re: Re: binding to a vhost using LWP
by Juerd (Abbot) on Apr 07, 2003 at 15:32 UTC