473,666 Members | 2,225 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weird problem with HTTPS and Request.Url.Abs oluteUri

Hi,

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

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

fileName = System.IO.Path. GetFileName(Req uest.Url.Absolu teUri)
path = Request.Url.Abs oluteUri.Replac e(fileName,
"myIEApp/EngineConfig.as px")

'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 7718
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**@discussio ns.microsoft.co m> wrote in message
news:8D******** *************** ***********@mic rosoft.com...
Hi,

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

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

fileName = System.IO.Path. GetFileName(Req uest.Url.Absolu teUri)
path = Request.Url.Abs oluteUri.Replac e(fileName,
"myIEApp/EngineConfig.as px")

'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
12655
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 accessed. The site in the code is valid for ease of testing. I also am including the LWP debug info for each attempt. Can anyone explain this behavior and what can I do to correct it? Thanks in advance
1
2185
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 , it changes to https:// if Request.ServerVariables("HTTPS") = "off" then method = Request.ServerVariables("REQUEST_METHOD") srvname = Request.ServerVariables("SERVER_NAME") scrname = Request.ServerVariables("SCRIPT_NAME") sRedirect = "https://"...
0
6076
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 . App B just has a HttpHandler which recieves the request for pages (actualy residing in App A), creates a HttpWebRequest object (which inturn reads the context.HttpRequest object) and serves the page with HttpWebResponse object (writing the...
2
4810
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 exhausted all my other options, so I have to get this scenario working). Basically, if I POST the data normally, it works fine, except the target page has a new session ID, so I lost the session data that I *do* transfer around. However, if I...
3
91316
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 class is XMLHttpRequest and not XMLHttpsRequest) Thanks, Sameer
1
2446
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 isn't specified. Because my machine and any other developer will have a certificate installed, we get a Security Alert dialog box. Click Yes and get routed to the login page in https mode. User logs in and continues in https mode, all is fine. ...
0
4081
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 "The remote server returned an error: (500) Internal Server Error". Obviously, this means that I have not posted all the parameters as the servlet requested. But I just can't seem to find out what went wrong with my code. Hope someone can enlighten me,...
0
1170
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 service (that I am aware of). But, I need to call the following inside my service:
12
10756
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 Download" - Do you want to open or save this file?.. And clicking 'save' gives me the file I want. I would like to achieve the same result automatically, without having to paste the url into a browser and click 'save' a specify where to save my...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8866
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8550
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8639
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7385
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6192
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1772
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.