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 82CC010AA5 for ; Mon, 3 Nov 2014 19:25:07 +0000 (UTC) Received: (qmail 10347 invoked by uid 500); 3 Nov 2014 19:25:03 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 10274 invoked by uid 500); 3 Nov 2014 19:25:03 -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 10263 invoked by uid 99); 3 Nov 2014 19:25:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2014 19:25:03 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [206.46.173.19] (HELO vms173019pub.verizon.net) (206.46.173.19) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2014 19:24:37 +0000 MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=utf-8 Received: from Christophers-MacBook-Pro.local ([71.178.180.80]) by vms173019.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NEH00LMY9UVWHD0@vms173019.mailsrvcs.net> for users@tomcat.apache.org; Mon, 03 Nov 2014 13:23:20 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=V7nKCljn c=1 sm=1 tr=0 a=QBPc8NVYiz1ZgJ+Dfko+og==:117 a=0Jzs0ny25Y0A:10 a=IkcTkHD0fZMA:10 a=-57I09spAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=j4nzMFrpAAAA:8 a=-Gr9w7K0ZvPqw078cP0A:9 a=QEXdDO2ut3YA:10 Message-id: <5457D627.4020208@christopherschultz.net> Date: Mon, 03 Nov 2014 14:23:19 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 To: Tomcat Users List Subject: Re: From HTTP to HTTPS request.getHeader("referer") References: <1414757174046-5024782.post@n6.nabble.com> <5453B666.8010702@yahoo.com> <54553823.4040600@tmbsw.com> <54556A3F.1030705@christopherschultz.net> <1414940860695-5024848.post@n6.nabble.com> <1414942228020-5024849.post@n6.nabble.com> <1414949642345-5024851.post@n6.nabble.com> In-reply-to: <1414949642345-5024851.post@n6.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Léa, On 11/2/14 12:34 PM, Léa Massiot wrote: > Hi again. It looks like "sendRedirect()" is working if I pass it a > HTTPS URL as an argument: > > ----------------------------------------------------- String s_prov > = request.getScheme() + "://" + request.getServerName() + > request.getContextPath() + "/" + "example1.jsp"; > > response.sendRedirect(s_prov); > ----------------------------------------------------- > > Nota: in my case, "request.getScheme()" is equal to "https". > > I think I'm going back to "sendRedirect()"... Snif :'/, it's a lot > of matches to replace back (from "forward()" to > "sendRedirect()")... If you want to switch protocols, then you will have to build the entire URL including the protocol. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUV9YnAAoJEBzwKT+lPKRY6IIP/iM8zeEPhqVKX69XpLDm/7kF SFegFsT2dCQIXA1UhhS6soW7T/7pC92iBFXxJZ6quYG3wHx+mmY5tarb+jpShNo7 FhO+0pKwhV2cixSbXV1mISaheDDfx1PIA7CBRyL9LtA2cioLAxJKdIaMgRQYN2cd FEjqRhpHWKQXYT1CmHNz80FcArVCKMy3UnXMUZbe/XOpNmHRCemS/pAFAtaHm7EV hiej35ztAAUJm5UGq0VhAL61of3ij1sHFthbH4lupc11HWIOqz+pl9KnByYmbIBf ZOJM8Ydma2/41BurVs/vrunqHRI4kNTi475I+xkjt/nYLXuStqsb3D0t7qKtdfkl R02jPFEq76MSvUoe2h73awOfPzddSeMDpwt+ld9BMltOwtsFdqNC6dXXQHB5O4yM y4ov0EIOK0WLgqqhebMquQ1JgIu8+6C3FW7z8HWIRCgkUUl6MaiYJQNTCAIiVYyI a0yKafVBk2nPCWNf2TxOy+yi4AT2SYnCpEsac9wCpracS/cfF7A3N/iJC5bkW+hS s91Y5O7E+p+iD46mT0i3BsiB0V7cVlDWd5I/I0P/dRB7dDUcxKIgnqMAWDGyswxe AU8DNTsWwYSpX51Awq0WkSmInbIgPRRZ8iuY4t7vy5zmB8gHV52zglbH8wsGvnQF BstMynBcam41fi62FgTW =9dkF -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org