Security

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • HTTP request working via hostname but not via IP address

    5 answers - 1430 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi all,
    I have a pretty basic sort of problem. While sending an HTTP request
    to a machine using a VBScript, when I mention the hostname in the URL,
    the request goes through smoothly. However, when I mention the IP
    address explicitly, the request does not go through. I have confirmed
    he IP address multiple times to make sure the error is not a typo.
    If the machine name had not been accessible, I would have concluded
    that the DNS query was the problem. But with the hostname working and
    the IP not working I am stumped.
    Any ideas?
    Cheers
    Arjun
    This List Sponsored by: Cenzic
    Concerned about Web Application Security?
    Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
    Choice Award from eWeek. As attacks through web applications continue to rise,
    you need to proactively protect your applications from hackers. Cenzic has the
    most comprehensive solutions to meet your application security penetration
    testing and vulnerability management needs. You have an option to go with a
    managed service (Cenzic ClickToSecure) or an enterprise software
    (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
    help you:
    And, now for a limited time we can do a FREE audit for you to confirm your
    results from other product. Contact us at request (AT) cenzic (DOT) com for details.
  • No.1 | | 2537 bytes | |

    hello arjun

    check if the website is a virtual websitemost probably it is and
    that is the reason you can only get at it with the hostname and not
    the IP address

    regards

    javier

    5/5/06, Arjun Venkatraman <arjunishere (AT) gmail (DOT) comwrote:
    Hi all,

    I have a pretty basic sort of problem. While sending an HTTP request
    to a machine using a VBScript, when I mention the hostname in the URL,
    the request goes through smoothly. However, when I mention the IP
    address explicitly, the request does not go through. I have confirmed
    he IP address multiple times to make sure the error is not a typo.

    If the machine name had not been accessible, I would have concluded
    that the DNS query was the problem. But with the hostname working and
    the IP not working I am stumped.

    Any ideas?

    Cheers

    Arjun

    This List Sponsored by: Cenzic

    Concerned about Web Application Security?
    Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
    Choice Award from eWeek. As attacks through web applications continue to rise,
    you need to proactively protect your applications from hackers. Cenzic has the
    most comprehensive solutions to meet your application security penetration
    testing and vulnerability management needs. You have an option to go with a
    managed service (Cenzic ClickToSecure) or an enterprise software
    (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
    help you:
    And, now for a limited time we can do a FREE audit for you to confirm your
    results from other product. Contact us at request (AT) cenzic (DOT) com for details.

    --

    This List Sponsored by: Cenzic

    Concerned about Web Application Security?
    Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
    Choice Award from eWeek. As attacks through web applications continue to rise,
    you need to proactively protect your applications from hackers. Cenzic has the
    most comprehensive solutions to meet your application security penetration
    testing and vulnerability management needs. You have an option to go with a
    managed service (Cenzic ClickToSecure) or an enterprise software
    (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
    help you:
    And, now for a limited time we can do a FREE audit for you to confirm your
    results from other product. Contact us at request (AT) cenzic (DOT) com for details.
  • No.2 | | 2905 bytes | |

    Hey Javier,

    The IP i'm trying to reach IS one of two IPs which correspond to a
    virtual adress, but this is on an internal network, so the IP I am
    aiming for is definitely not virtual.
    Any other possibilities?

    Cheers
    Arjun

    5/8/06, Javier Liendo <javier (AT) liendo (DOT) netwrote:
    hello arjun

    check if the website is a virtual websitemost probably it is and
    that is the reason you can only get at it with the hostname and not
    the IP address

    regards

    javier

    5/5/06, Arjun Venkatraman <arjunishere (AT) gmail (DOT) comwrote:
    Hi all,

    I have a pretty basic sort of problem. While sending an HTTP request
    to a machine using a VBScript, when I mention the hostname in the URL,
    the request goes through smoothly. However, when I mention the IP
    address explicitly, the request does not go through. I have confirmed
    he IP address multiple times to make sure the error is not a typo.

    If the machine name had not been accessible, I would have concluded
    that the DNS query was the problem. But with the hostname working and
    the IP not working I am stumped.

    Any ideas?

    Cheers

    Arjun

    This List Sponsored by: Cenzic

    Concerned about Web Application Security?
    Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
    Choice Award from eWeek. As attacks through web applications continue to rise,
    you need to proactively protect your applications from hackers. Cenzic has the
    most comprehensive solutions to meet your application security penetration
    testing and vulnerability management needs. You have an option to go with a
    managed service (Cenzic ClickToSecure) or an enterprise software
    (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
    help you:
    And, now for a limited time we can do a FREE audit for you to confirm your
    results from other product. Contact us at request (AT) cenzic (DOT) com for details.

    >
    >
    >


    This List Sponsored by: Cenzic

    Concerned about Web Application Security?
    Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
    Choice Award from eWeek. As attacks through web applications continue to rise,
    you need to proactively protect your applications from hackers. Cenzic has the
    most comprehensive solutions to meet your application security penetration
    testing and vulnerability management needs. You have an option to go with a
    managed service (Cenzic ClickToSecure) or an enterprise software
    (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
    help you:
    And, now for a limited time we can do a FREE audit for you to confirm your
    results from other product. Contact us at request (AT) cenzic (DOT) com for details.
  • No.3 | | 3293 bytes | |

    The web site is probably not configured to be the response from the
    http server from the IP address, only from requests with the hostname.
    The IP address may only get the default site, which would not be the
    server you're trying for.

    Ron

    5/8/06, Arjun Venkatraman <arjunishere (AT) gmail (DOT) comwrote:
    Hey Javier,

    The IP i'm trying to reach IS one of two IPs which correspond to a
    virtual adress, but this is on an internal network, so the IP I am
    aiming for is definitely not virtual.
    Any other possibilities?

    Cheers
    Arjun
    >
    >
    >

    5/8/06, Javier Liendo <javier (AT) liendo (DOT) netwrote:
    hello arjun

    check if the website is a virtual websitemost probably it is and
    that is the reason you can only get at it with the hostname and not
    the IP address

    regards

    javier

    5/5/06, Arjun Venkatraman <arjunishere (AT) gmail (DOT) comwrote:
    Hi all,

    I have a pretty basic sort of problem. While sending an HTTP request
    to a machine using a VBScript, when I mention the hostname in the URL,
    the request goes through smoothly. However, when I mention the IP
    address explicitly, the request does not go through. I have confirmed
    he IP address multiple times to make sure the error is not a typo.

    If the machine name had not been accessible, I would have concluded
    that the DNS query was the problem. But with the hostname working and
    the IP not working I am stumped.

    Any ideas?

    Cheers

    Arjun

    This List Sponsored by: Cenzic

    Concerned about Web Application Security?
    Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
    Choice Award from eWeek. As attacks through web applications continue to rise,
    you need to proactively protect your applications from hackers. Cenzic has the
    most comprehensive solutions to meet your application security penetration
    testing and vulnerability management needs. You have an option to go with a
    managed service (Cenzic ClickToSecure) or an enterprise software
    (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
    help you:
    And, now for a limited time we can do a FREE audit for you to confirm your
    results from other product. Contact us at request (AT) cenzic (DOT) com for details.

    >
    >
    >
    >


    This List Sponsored by: Cenzic

    Concerned about Web Application Security?
    Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
    Choice Award from eWeek. As attacks through web applications continue to rise,
    you need to proactively protect your applications from hackers. Cenzic has the
    most comprehensive solutions to meet your application security penetration
    testing and vulnerability management needs. You have an option to go with a
    managed service (Cenzic ClickToSecure) or an enterprise software
    (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
    help you:
    And, now for a limited time we can do a FREE audit for you to confirm your
    results from other product. Contact us at request (AT) cenzic (DOT) com for details.

    --
  • No.4 | | 1913 bytes | |

    The IP i'm trying to reach IS one of two IPs which correspond to a virtual adress, but this is on an internal network, so the IP I am aiming for is definitely not virtual. Any other possibilities?

    There may be some overlapping terminology here: "virtual IP" vs. "virtual host".

    Try this:

    telnet HSTNAME 80
    Trying ADDRESS
    Connected to HSTNAME (ADDRESS).
    Escape character is '^]'.
    GET / HTTP/1.0

    Then press return a second time. Note what you get for a reply. Then do this:

    telnet HSTNAME 80
    Trying ADDRESS
    Connected to HSTNAME (ADDRESS).
    Escape character is '^]'.
    GET / HTTP/1.1
    Host: HSTNAME

    And press return again. If the responses differ significantly, the web server is configured to require the "Host:" header from your browser, which was included in the second request but not the first. When you connect by IP address, your computer maybe sends "Host: ADDRESS" or maybe no host header at all. Thus the server rejects the request.

    Marvin Simkin, CISA
    http://simkin.asu.edu/

    This List Sponsored by: Cenzic

    Concerned about Web Application Security?
    Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
    Choice Award from eWeek. As attacks through web applications continue to rise,
    you need to proactively protect your applications from hackers. Cenzic has the
    most comprehensive solutions to meet your application security penetration
    testing and vulnerability management needs. You have an option to go with a
    managed service (Cenzic ClickToSecure) or an enterprise software
    (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
    help you:
    And, now for a limited time we can do a FREE audit for you to confirm your
    results from other product. Contact us at request (AT) cenzic (DOT) com for details.
  • No.5 | | 3652 bytes | |

    I think the strongest possibility is that the site I'm aiming at is
    responding only to the hostname and not the IP as a result of the
    configuration. I shall check this one.

    Thanks all, this was really helpful

    5/8/06, Ron Nelson <ron.e.nelson (AT) gmail (DOT) comwrote:
    The web site is probably not configured to be the response from the
    http server from the IP address, only from requests with the hostname.
    The IP address may only get the default site, which would not be the
    server you're trying for.

    Ron

    5/8/06, Arjun Venkatraman <arjunishere (AT) gmail (DOT) comwrote:
    Hey Javier,

    The IP i'm trying to reach IS one of two IPs which correspond to a
    virtual adress, but this is on an internal network, so the IP I am
    aiming for is definitely not virtual.
    Any other possibilities?

    Cheers
    Arjun
    >
    >
    >

    5/8/06, Javier Liendo <javier (AT) liendo (DOT) netwrote:
    hello arjun

    check if the website is a virtual websitemost probably it is and
    that is the reason you can only get at it with the hostname and not
    the IP address

    regards

    javier

    5/5/06, Arjun Venkatraman <arjunishere (AT) gmail (DOT) comwrote:
    Hi all,

    I have a pretty basic sort of problem. While sending an HTTP request
    to a machine using a VBScript, when I mention the hostname in the URL,
    the request goes through smoothly. However, when I mention the IP
    address explicitly, the request does not go through. I have confirmed
    he IP address multiple times to make sure the error is not a typo.

    If the machine name had not been accessible, I would have concluded
    that the DNS query was the problem. But with the hostname working and
    the IP not working I am stumped.

    Any ideas?

    Cheers

    Arjun

    This List Sponsored by: Cenzic

    Concerned about Web Application Security?
    Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
    Choice Award from eWeek. As attacks through web applications continue to rise,
    you need to proactively protect your applications from hackers. Cenzic has the
    most comprehensive solutions to meet your application security penetration
    testing and vulnerability management needs. You have an option to go with a
    managed service (Cenzic ClickToSecure) or an enterprise software
    (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
    help you:
    And, now for a limited time we can do a FREE audit for you to confirm your
    results from other product. Contact us at request (AT) cenzic (DOT) com for details.

    >
    >
    >
    >


    This List Sponsored by: Cenzic

    Concerned about Web Application Security?
    Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
    Choice Award from eWeek. As attacks through web applications continue to rise,
    you need to proactively protect your applications from hackers. Cenzic has the
    most comprehensive solutions to meet your application security penetration
    testing and vulnerability management needs. You have an option to go with a
    managed service (Cenzic ClickToSecure) or an enterprise software
    (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
    help you:
    And, now for a limited time we can do a FREE audit for you to confirm your
    results from other product. Contact us at request (AT) cenzic (DOT) com for details.

    >
    >
    >
    >
    >

Re: HTTP request working via hostname but not via IP address


max 4000 letters.
Your nickname that display:
In order to stop the spam: 5 + 4 =
QUESTION ON "Security"

EMSDN.COM