Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 71657 invoked from network); 11 Aug 2007 12:44:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Aug 2007 12:44:09 -0000 Received: (qmail 56551 invoked by uid 500); 11 Aug 2007 12:44:08 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 56353 invoked by uid 500); 11 Aug 2007 12:44:07 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 56344 invoked by uid 99); 11 Aug 2007 12:44:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Aug 2007 05:44:07 -0700 X-ASF-Spam-Status: No, hits=-98.0 required=10.0 tests=ALL_TRUSTED,URIBL_BLACK X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Aug 2007 12:44:03 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4EC60714163 for ; Sat, 11 Aug 2007 05:43:43 -0700 (PDT) Message-ID: <11969812.1186836223300.JavaMail.jira@brutus> Date: Sat, 11 Aug 2007 05:43:43 -0700 (PDT) From: "Roland Weber (JIRA)" To: httpcomponents-dev@jakarta.apache.org Subject: [jira] Updated: (HTTPCLIENT-679) URI Absolutization does not follow browser behavior In-Reply-To: <10647207.1186156793012.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roland Weber updated HTTPCLIENT-679: ------------------------------------ Fix Version/s: 3.1 Final > URI Absolutization does not follow browser behavior > --------------------------------------------------- > > Key: HTTPCLIENT-679 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-679 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Affects Versions: 3.1 RC1 > Environment: HttpClient 3.1 RC1, > JDK 1.6.0 > Ubuntu 7.04 > Reporter: Jeff Dalton > Fix For: 3.1 Final > > Attachments: uri_fix.patch > > > This was encountered using Heritrix to crawl a prominent website. > The URI resulting from the HttpClient URI constructor (base, relative) does not follow browser behavior: > URI newUrl = new URI(new URI("http://www.theirwebsite.com/browse/results?type=browse&att=1"), "?sort=0&offset=11&pageSize=10") > Results in newUrl: > http://www.theirwebsite.com/browse/?sort=0&offset=11&pageSize=10 > The desired behavior based on Firefox and IE should be: > http://www.theirwebsite.com/browse/results?sort=0&offset=11&pageSize=10 > These browsers treat the question mark similar to a directory separator and do not require a file to be specified before the query. > HttpClient's current behavior does not correspond to current browser behavior and leads to an inability to crawl certain websites if HttpClient's URI class is used. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org