473,289 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

Weird problem with HTTPS and Request.Url.AbsoluteUri

Hi,

I am facing a weird problem with HTTPS and Request.Url.AbsoluteUri in my
ASP.NET application. Here is the scenario -
1. I have a menu page (Default.aspx), which has the following anchor -
<a href="ApplicationHost.aspx">Open Application</a>
2. The ApplicationHost.aspx has the following code in its Load event handler
-

'ASSUMPTION -
'Request.Url.AbsoluteUri - returns -
http://localhost/myWebApp/ApplicationHost.aspx

fileName = System.IO.Path.GetFileName(Request.Url.AbsoluteUri )
path = Request.Url.AbsoluteUri.Replace(fileName,
"myIEApp/EngineConfig.aspx")

'DEBUGGING -
Response.Write(path)

Return

3. Open IE, and use this URL - http://190.160.70.10/myWebApp/Default.aspx.
Next click on the Open Application link. The result is -
http://190.160.70.10/myWebApp/myIEApp/EngineConfig.aspx

4. Open IE, and use this URL (NOTE - using HTTPS) -
https://191.161.71.11/myWebApp/Default.aspx. Next click on the Open
Application link. the result is -
http://191.161.71.11/myWebApp/myIEApp/EngineConfig.aspx

PROBLEM - the result has HTTP instead of HTTPS!!!!!

A thing I notice in IE - When I access the site from HTTPS, I do not see the
lock icon in IE window. I am not sure why. The HTTPS access is via a external
server so do not have much details there.

Has anybody faced a similar problem or has some insight into what could be
going wrong?

Thanks & Regards,
Dhwanil Shah
Nov 19 '05 #1
1 7655
most likely the iis server is not running https itself, but the support has
been offloaded to a frontend bridge/router/proxy. the router uses https to
client (browser) but uses http to the iis box.

-- bruce (sqlwork.com)

"Dees" <De**@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
Hi,

I am facing a weird problem with HTTPS and Request.Url.AbsoluteUri in my
ASP.NET application. Here is the scenario -
1. I have a menu page (Default.aspx), which has the following anchor -
<a href="ApplicationHost.aspx">Open Application</a>
2. The ApplicationHost.aspx has the following code in its Load event
handler
-

'ASSUMPTION -
'Request.Url.AbsoluteUri - returns -
http://localhost/myWebApp/ApplicationHost.aspx

fileName = System.IO.Path.GetFileName(Request.Url.AbsoluteUri )
path = Request.Url.AbsoluteUri.Replace(fileName,
"myIEApp/EngineConfig.aspx")

'DEBUGGING -
Response.Write(path)

Return

3. Open IE, and use this URL - http://190.160.70.10/myWebApp/Default.aspx.
Next click on the Open Application link. The result is -
http://190.160.70.10/myWebApp/myIEApp/EngineConfig.aspx

4. Open IE, and use this URL (NOTE - using HTTPS) -
https://191.161.71.11/myWebApp/Default.aspx. Next click on the Open
Application link. the result is -
http://191.161.71.11/myWebApp/myIEApp/EngineConfig.aspx

PROBLEM - the result has HTTP instead of HTTPS!!!!!

A thing I notice in IE - When I access the site from HTTPS, I do not see
the
lock icon in IE window. I am not sure why. The HTTPS access is via a
external
server so do not have much details there.

Has anybody faced a similar problem or has some insight into what could be
going wrong?

Thanks & Regards,
Dhwanil Shah

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Woogie | last post by:
When running the sample code below without a proxy the GET returns the expected data. When run with the $proxy uncommented the GET returns the content of the login page for the site being...
1
by: dave | last post by:
Hello I have one simple form (myform.asp) and it posts to query.asp I had put below code in both file on top of the page to redirect this two pages in https:// so any one can access it thru http...
0
by: Sivashankaran Vaidhyalingam | last post by:
Hi folks, I have an aspx application App A hosted in a server which is inside the intranet . I need to serve pages from this application _through_ another application App B which acts as a proxy...
2
by: Keith Patrick | last post by:
I'm trying to programmatically post data to another page within my ASP.Net app. Not POSTing is not an option (I can't store this data in my session, context, hidden fields, or anything else...I've...
3
by: sameergn | last post by:
Hi, Can anyone confirm is AJAX request can be sent over HTTPS if the containing page is loaded via HTTPS? or is it true that all AJAX interaction take place via HTTP? (Since the name of the...
1
by: jdp | last post by:
I've created an asp.net 2.0 site that has secure and non secure pages so, obviously, it has a login page. The web.sitemap file has the url set to the relative location of the page, meaning https...
0
by: shlim | last post by:
Currently I'm using VB.Net to perform a http/https multipart form post to a servlet. I'm able to perform the post using HttpWebrequest via GetRequestStream(). However, the servlet returned me with...
0
by: pbd22 | last post by:
Hi. I am wondering how to handle AbsoluteUri values inside windows services? It seems that the absoluteuri is called from the System.Web.UI.Page namespace which is not allowed inside a windows...
12
by: MimiMi | last post by:
Hi y'all! I'm new at perl, and I'm trying to automate a file fetch. I have this url (in this example called 'https://GetMyFile'), which, when I paste it into a browser, gives me the pop-up "File...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.