Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 10528 invoked from network); 9 Feb 2007 16:46:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2007 16:46:34 -0000 Received: (qmail 30890 invoked by uid 500); 9 Feb 2007 16:46:21 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 30879 invoked by uid 500); 9 Feb 2007 16:46:21 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 30866 invoked by uid 99); 9 Feb 2007 16:46:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Feb 2007 08:46:21 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.227.126.183] (HELO moutng.kundenserver.de) (212.227.126.183) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Feb 2007 08:46:10 -0800 Received: from [85.180.31.173] (helo=[85.180.31.173]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1HFYse1ep2-00033N; Fri, 09 Feb 2007 17:45:49 +0100 Message-ID: <45CCA623.2070804@dubioso.net> Date: Fri, 09 Feb 2007 17:49:39 +0100 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20070102 SeaMonkey/1.0.7 MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: Over writing the host header does not work References: <200702091630.31414.impy@65535.com> In-Reply-To: <200702091630.31414.impy@65535.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:4601b1d39ab4ddfc21c613822e406392 X-Provags-ID2: V01U2FsdGVkX1/Sq8TFZVNl5x1GN6MghrFnvvsk00pKJwzayYvaU4roUOjOl5gQAGKBGJxg9iWMiwx+N/xMBAsrx184kwHml9iUIIxuVF1Bo25nKrU8WLJ68w== X-Virus-Checked: Checked by ClamAV on apache.org Hello Impy, the value of the Host: header is controlled by HttpClient and can not be set manually. Use the VIRTUAL_HOST parameter to tell HttpClient which value to use: http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/params/HttpMethodParams.html#setVirtualHost(java.lang.String) cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org