in reply to binding to a vhost using LWP

If the resource you are contacting is an HTTP server of some kind, then just use LWP normally, specifying host and port. If it not an HTTP server, you should stay away from LWP and use something else like IO::Socket.

UPDATE: Can you explain why this is not as simple as specifying an IP to LWP?

Replies are listed 'Best First'.
Re: Re: binding to a vhost using LWP
by Thelonius (Priest) on Apr 08, 2003 at 03:16 UTC
    Can you explain why this is not as simple as specifying an IP to LWP?
    What he wants to do is specify the IP address (and perhaps port) that he is coming from. A computer may have more than one IP address--most commonly because it has more than one network interface card.
      Thanks, this question makes much more sense to me now.