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 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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://"...
|
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...
|
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...
|
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
| |
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. ...
|
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,...
|
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:
|
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...
|
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,...
|
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...
| |
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...
|
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,...
|
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...
|
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...
|
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...
|
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...
| |
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...
| |