in reply to Re: Get the IP Address
in thread Get the IP Address

Eric,

Thank You for your reply! Your post sums up where I'm at and what I'm hoping to accomplish with this. I do indeed need to have the HTTP header use the hostname and not the IP.

>"You want to know which specific IP address was returned when LWP looked up the name to try to get the content."

The only thing I can think of would be to modify a lower module (the one which is actually performs the request lookup) and make that value available to LWP.

Any suggestions?

Replies are listed 'Best First'.
Re: Re: Re: Get the IP Address
by esh (Pilgrim) on Aug 29, 2003 at 06:53 UTC

    Here's the order I would try. You may like them in a different order or have better ideas.

    1. See if you can find a way to force LWP to pass a specific "Host:" header even though you are telling it what specific IP address to access in the URL.
    2. See if you can subclass something in LWP to be able to do your own DNS lookup, or to get access to the IP address resolved even when the request fails.
    3. Contact the LWP author(s) and see if they have suggestions or can modify the interface to support what you need.
    4. Write your own HTTP client, provided your needs are simple.
    5. Copy and edit the guts of LWP classes.

    -- Eric Hammond