Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Request.GetRelativeSecureLink problem

$
0
0
Request.GetRelativeSecureLink problem
HTML, CSS, JavaScript, Flash
Request.GetRelativeSecureLink problem
May. 10, 2013
03:56 pm
3S50Y5P4AShow this entire thread in new window
Gratar Image based on email address
From:Chris ODonnell
To:All
I am using the following to force a redirect to an HTTPS url....

lcPort = Request.ServerVariables("SERVER_PORT") IF lcPort # "443" Response.Redirect( Request.GetRelativeSecureLink(Request.GetCurrentUrl()) )RETURNENDIF

The non-https test URL is something similar to ....

http://www.acme.com/directory1/myMethod.cfm?process=GetAllData&ApiID=8734gTh

The response.redirect above redirects to the following mangled httpS url.

https://www.acme.com/directory1/http://www.acme.com/directory1/myMethod.cfm?process=GetAllData&APIID=8734gTh

Its concatenating the original URL to a piece of the httpS equivalent. Any idea?


Viewing all articles
Browse latest Browse all 10393

Trending Articles