You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Mohit Anchlia <mo...@gmail.com> on 2011/08/09 03:09:09 UTC

Local DNS resolution

Is there a way to say in the application without having to use
/etc/hosts or DNS server that resolve abc.com to 1.2.3.4 inside of the
java code?

This may not even be possible but I thought I will ask. I am working
on a application where I don't want to change the URL but need to
resolve it to a different IP so that I can POST to that IP but keep
the REQUEST_URL same to pass OAuth


URL rewrite for some reason is not working.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Re: Local DNS resolution

Posted by Mohit Anchlia <mo...@gmail.com>.
Looks like I can do this by setting HTTP header "Host".

On Mon, Aug 8, 2011 at 6:09 PM, Mohit Anchlia <mo...@gmail.com> wrote:
> Is there a way to say in the application without having to use
> /etc/hosts or DNS server that resolve abc.com to 1.2.3.4 inside of the
> java code?
>
> This may not even be possible but I thought I will ask. I am working
> on a application where I don't want to change the URL but need to
> resolve it to a different IP so that I can POST to that IP but keep
> the REQUEST_URL same to pass OAuth
>
>
> URL rewrite for some reason is not working.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org