Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 11378 invoked from network); 15 Jun 2006 15:28:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jun 2006 15:28:18 -0000 Received: (qmail 35370 invoked by uid 500); 15 Jun 2006 15:28:16 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 35353 invoked by uid 500); 15 Jun 2006 15:28:16 -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 35342 invoked by uid 99); 15 Jun 2006 15:28:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2006 08:28:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.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; Thu, 15 Jun 2006 08:28:15 -0700 Received: from [85.180.35.225] (helo=[85.180.35.225]) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis), id 0MKxQS-1FqtlC31ZB-0000Z3; Thu, 15 Jun 2006 17:27:54 +0200 Message-ID: <44917CEB.3090703@dubioso.net> Date: Thu, 15 Jun 2006 17:29:47 +0200 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060428 X-Accept-Language: en-us, en MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: URL escaping References: <20060615152152.GC5864@office.redwerk.com> In-Reply-To: <20060615152152.GC5864@office.redwerk.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:4601b1d39ab4ddfc21c613822e406392 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Eugeny, Eugeny N Dzhurinsky wrote: > Hi there! > I facing some weird problems with URL encoding. For some reason this URL: > > http://www.raresplendors.com/images/Fuchsia%20Paua%20Cufflinks%20+.jpg > > Results as invalid escaped url when I trying to use it in GetMethod. > > Is there any way to force httpclient decide is URL escaped or not? Use the no-argument constructor of GetMethod, followed by setURI: http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpMethodBase.html#setURI(org.apache.commons.httpclient.URI) The URI class has plenty of constructors to choose from, some of them expect the URL to be escaped, others will do the escaping for you. 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