473,382 Members | 1,441 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,382 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 7675
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.