Hello Steve,

> If I use an IP address in my URL, everything works great. However, if I use
> a hostname in place of the IP, the GetMethod request fails with a 404. But,
> when I run the failing URL through wget, it works! I would have expected
> wget to fail in the same manner as my HttpClient call. Why would wget work
> and GetMethod fail?

404 is an error response from the server, which obviously doesn't
like something in the request. In HttpClient, you can enable wire
logging (for the headers) to see the exact request:
http://jakarta.apache.org/commons/httpclient/logging.html

Please compare the request being generated when you use the IP
address with the request when you use the hostname. Are you using
a plain hostname or a fully qualified one? Maybe you can also get
a trace of the request that wget sends? If you don't know how to
interpret the differences, please post traces of the requests to
this list. Then we'll take guesses :-)

hope that helps,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to