Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 94673 invoked from network); 2 Jan 2007 22:34:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jan 2007 22:34:30 -0000 Received: (qmail 41742 invoked by uid 500); 2 Jan 2007 22:34:36 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 41563 invoked by uid 500); 2 Jan 2007 22:34:36 -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 41552 invoked by uid 99); 2 Jan 2007 22:34:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 14:34:36 -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.187] (HELO moutng.kundenserver.de) (212.227.126.187) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 14:34:25 -0800 Received: from [85.180.53.250] (helo=[85.180.53.250]) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1H1sCp2xMa-0007pv; Tue, 02 Jan 2007 23:34:04 +0100 Message-ID: <459ADEAC.9020703@dubioso.net> Date: Tue, 02 Jan 2007 23:37:32 +0100 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061110 SeaMonkey/1.0.6 MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: why https site returns 403 when using proxy server? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:4601b1d39ab4ddfc21c613822e406392 X-Virus-Checked: Checked by ClamAV on apache.org Hello Michelle, > It works fine when I connect to a http site. eg. > URL url = new URL("http://www.eclipse.org/"); > HttpURLConnection conn = (HttpURLConnection)url.openConnection(); > int result = conn.getResponseCode(); > the response code I got is 200. I assume that you are aware that URL.openConnection() will *not* use HttpClient and that you just pasted the wrong example code into your mail. 1. Have you tried connecting to the HTTPS URL directly, without the proxy inbetween? See our SSL guide: http://jakarta.apache.org/commons/httpclient/sslguide.html 2. Have you tried connecting to the HTTPS URL through the proxy but with a standard web browser? If both of these work, and only the combination of HttpClient through proxy to the HTTPS URL fails, then you most likely have some problem in your code. In that case, a more detailed description of what fails would be helpful. And/or a wire log: http://jakarta.apache.org/commons/httpclient/logging.html A wire log of the headers should be sufficient. hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org