in reply to binding to a vhost using LWP

For the task of pulling files off websites you don't need to fiddle with Socket calls the library - LWP::UserAgent does that for you. I am not sure what exactly you want to do. Why do you need to use low level Socket calls when you use LWP::UserAgent?
Update: Perhaps you have problem with the address - you have it as a number - while the UserAgent needs the dotted string?

Replies are listed 'Best First'.
Re: Re: binding to a vhost using LWP
by strfry() (Monk) on Apr 07, 2003 at 14:44 UTC
    well, perhaps i've missed something, but i've as of yet been able to find any way to manipulate the underlying socket using LWP::UserAgent. in a nutshell, the machine i'm developing on is has several IP's that go to several lan/wan networks, and perhaps two or three that actually go out to the real world; i want to bind to an arbitrary IP address depending on the situation.

    a really good example of why this is necessary, would be pulling XML/RDF files from computers that are inside of a LAN that is not accessable from the internet, other than from the outside webserver. or perhaps you have two IP's on a machine, from two totally different IP blocks, and only one of the IP's can access the files due to firewalling. or whatever. (:

    i'm trying that use base now, i'll update whenever i get a chance. thanks again. (:

    strfry(reality)