Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 098D2742B for ; Tue, 9 Aug 2011 17:20:50 +0000 (UTC) Received: (qmail 24889 invoked by uid 500); 9 Aug 2011 17:20:49 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 24802 invoked by uid 500); 9 Aug 2011 17:20:49 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 24793 invoked by uid 99); 9 Aug 2011 17:20:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 17:20:48 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mohitanchlia@gmail.com designates 209.85.210.48 as permitted sender) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 17:20:42 +0000 Received: by pzk34 with SMTP id 34so328960pzk.35 for ; Tue, 09 Aug 2011 10:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=t4ARBlkZijP5EuiB5UlG+U8jridmoh4Bzm1ur7rlxmk=; b=jSX1T55rBWQnq+lrPBNLmt1FeISPMelZrdvS69r4iz6FNgvWRzvWkM2QZ/1O/MmTZ0 uX7RyxJzd49mw0w5fNeD3iitw2dEiL1gTAtFzE4mzifV4EHuXHnTwEdQYDivXwAiLEza +iIVEdLyDQ7wGzfI2wMucubBmadrUk8yFlc/U= MIME-Version: 1.0 Received: by 10.142.152.34 with SMTP id z34mr7196763wfd.209.1312910421434; Tue, 09 Aug 2011 10:20:21 -0700 (PDT) Received: by 10.68.64.72 with HTTP; Tue, 9 Aug 2011 10:20:21 -0700 (PDT) In-Reply-To: References: Date: Tue, 9 Aug 2011 10:20:21 -0700 Message-ID: Subject: Re: Local DNS resolution From: Mohit Anchlia To: HttpClient User Discussion Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Looks like I can do this by setting HTTP header "Host". On Mon, Aug 8, 2011 at 6:09 PM, Mohit Anchlia 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