Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E46FCE0C5 for ; Wed, 9 Jan 2013 22:02:12 +0000 (UTC) Received: (qmail 81782 invoked by uid 500); 9 Jan 2013 22:02:12 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 81741 invoked by uid 500); 9 Jan 2013 22:02:12 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 81730 invoked by uid 99); 9 Jan 2013 22:02:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 22:02:12 +0000 Date: Wed, 9 Jan 2013 22:02:12 +0000 (UTC) From: "Karl Wright (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HTTPCORE-326) HttpHost class should not add port number if port is default MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Karl Wright created HTTPCORE-326: ------------------------------------ Summary: HttpHost class should not add port number if port is default Key: HTTPCORE-326 URL: https://issues.apache.org/jira/browse/HTTPCORE-326 Project: HttpComponents HttpCore Issue Type: Bug Components: HttpCore Affects Versions: 4.2.3, 4.2.2 Reporter: Karl Wright The following method: {code} public String toHostString() { if (this.port != -1) { //the highest port number is 65535, which is length 6 with the addition of the colon StringBuilder buffer = new StringBuilder(this.hostname.length() + 6); buffer.append(this.hostname); buffer.append(":"); buffer.append(Integer.toString(this.port)); return buffer.toString(); } else { return this.hostname; } } {code} ... always appends a port number. Unfortunately, some sites don't accept a port number. See CONNECTORS-604. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org