Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 98482 invoked from network); 25 Nov 2004 18:24:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Nov 2004 18:24:31 -0000 Received: (qmail 44386 invoked by uid 500); 25 Nov 2004 18:24:31 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 44369 invoked by uid 500); 25 Nov 2004 18:24:31 -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 44355 invoked by uid 99); 25 Nov 2004 18:24:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO topexm01.sbc) (12.108.131.35) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 25 Nov 2004 10:24:30 -0800 Received: by topexm01.sbc with Internet Mail Service (5.5.2653.19) id ; Thu, 25 Nov 2004 12:22:15 -0600 Message-ID: From: Gustavo Hexsel To: "'httpclient-user@jakarta.apache.org'" Subject: Confusion with encodings - to encode or not to encode? It's like information age Hamlet... Date: Thu, 25 Nov 2004 12:22:15 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I'm having some trouble grasping the new encoding methods (new as in 3.0a1). I'm not sure when things should get encoded or not, and where they should be decoded again. For instance: - when I parse the "location" header for redirects, should I encode it? - when I parse a relative URL from a page and merge it with the current address, I'm using the constructor HttpURL(HttpURL base, String relative). However, it does not generate the correct encoding (I filed a bug on it, but now I'm not sure I'm using the API correctly). []s Gustavo --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org