Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 99DA3106D6 for ; Mon, 10 Jun 2013 12:43:15 +0000 (UTC) Received: (qmail 6884 invoked by uid 500); 10 Jun 2013 12:43:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 6805 invoked by uid 500); 10 Jun 2013 12:43:09 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 6795 invoked by uid 99); 10 Jun 2013 12:43:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jun 2013 12:43:08 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anigoyal@cisco.com designates 173.37.86.77 as permitted sender) Received: from [173.37.86.77] (HELO rcdn-iport-6.cisco.com) (173.37.86.77) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jun 2013 12:43:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5066; q=dns/txt; s=iport; t=1370868180; x=1372077780; h=from:to:subject:date:message-id:mime-version; bh=mPhFprc81L7B5U5sQyDTfGS6fB4uXKflLVgwULQPH2Q=; b=Ohu5HpQQg60ruR4yczAjF+Q9NIGQne2sSNpJkEs7nei4hKt+zu5rKwZ8 QodqgYiM/OOLlZS5HO0O+7oJ5tdS6OsxW7zcT1IV3mLE9M3oc8o3ftGVe UWLGX0+0sokyROjuLNyHXGysvEBFperPplbrmWpX6viG3mjX09soqkbKu Y=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgQFAIfItVGtJV2c/2dsb2JhbABagkUjITBJvkGBAxZ0giUBBC1eASpWJgEEG4gFAZh4oAuPB4M3YQOpAoMPgic X-IronPort-AV: E=Sophos;i="4.87,836,1363132800"; d="scan'208,217";a="220866839" Received: from rcdn-core-5.cisco.com ([173.37.93.156]) by rcdn-iport-6.cisco.com with ESMTP; 10 Jun 2013 12:42:38 +0000 Received: from xhc-rcd-x03.cisco.com (xhc-rcd-x03.cisco.com [173.37.183.77]) by rcdn-core-5.cisco.com (8.14.5/8.14.5) with ESMTP id r5ACgbfx031629 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 10 Jun 2013 12:42:37 GMT Received: from xmb-aln-x13.cisco.com ([fe80::5404:b599:9f57:834b]) by xhc-rcd-x03.cisco.com ([173.37.183.77]) with mapi id 14.02.0318.004; Mon, 10 Jun 2013 07:42:37 -0500 From: "Anil Goyal -X (anigoyal - Aricent Technologies at Cisco)" To: Tomcat Users List Subject: Customizing SSL in HttpClient Thread-Topic: Customizing SSL in HttpClient Thread-Index: Ac5l1/lw8Wwi2G8DQw+lYNfcOLUGaw== Date: Mon, 10 Jun 2013 12:42:36 +0000 Message-ID: <5032F5DAD1369F48BD8A3348125CBB9812878060@xmb-aln-x13.cisco.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.78.173.29] Content-Type: multipart/alternative; boundary="_000_5032F5DAD1369F48BD8A3348125CBB9812878060xmbalnx13ciscoc_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_5032F5DAD1369F48BD8A3348125CBB9812878060xmbalnx13ciscoc_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi I am trying to create a http client and send a request to certain port of a= server using below code: HttpClient client =3D new HttpClient(); client.getHostConfiguration().setHost(address, portNumber, protocol); Here portNumber that I am setting is 8444(https port of tomcat) When I execute client.executemethod() and at the server side when I tried t= o retrieve request.getRequestURL(), I am getting the url with port 443 not = 8444 which I set in client. Even request.getServerPort is giving 443 not 84= 44. The things are working fine for 8081(http port of tomcat) i..e HttpClient client =3D new HttpClient(); client.getHostConfiguration().setHost(address, portNumber, protocol); Here portNumber that I am setting is 8081(https port of tomcat) When I execute client.executemethod() and at the server side when I tried t= o retrieve request.getRequestURL(), I am getting the url with port 8081 whi= ch I set in client. Even request.getServerPort is giving 8081. Thanks Anil --_000_5032F5DAD1369F48BD8A3348125CBB9812878060xmbalnx13ciscoc_--