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

Home Posts Topics Members FAQ

Request obj returnin http always even in when the browser url is h

Hi

I having a similar issue.

my website url has https://blahblahblah but when i do
Response.Write( Request.Url); it writes the url with http..........i ts really
strange........ i dont have a clue why the url in my browser has https and
request.url has http...........

using the request object i am not able to get the scheme whether its http or
https.......... ..its always returning http whether or not the request is
secure........

Request.Issecur econnection is also always returning false.......... ...........

I need the http scheme for consturcting an url which inturn has to go to a
pdf file which we post to many customers...... ..............A ny idea how to
get the http scheme

Thanks
Suba
Mar 21 '08 #1
3 2582
how is SSL configured for your site? is it configured in IIS or via some load
balancer or web accelerator?
if its configured on your load balancer / web acceslerator then all requests
to your webserver will be http even if the user request was https. the load
balancer / accelerator offloads the ssl/https operations from your web server

--
Misbah Arefin
https://mcp.support.microsoft.com/profile/MISBAH.AREFIN
http://www.linkedin.com/in/misbaharefin
"Suba" wrote:
Hi

I having a similar issue.

my website url has https://blahblahblah but when i do
Response.Write( Request.Url); it writes the url with http..........i ts really
strange........ i dont have a clue why the url in my browser has https and
request.url has http...........

using the request object i am not able to get the scheme whether its http or
https.......... ..its always returning http whether or not the request is
secure........

Request.Issecur econnection is also always returning false.......... ...........

I need the http scheme for consturcting an url which inturn has to go to a
pdf file which we post to many customers...... ..............A ny idea how to
get the http scheme

Thanks
Suba
Mar 21 '08 #2
Yeah we have a load balancer.....i think as u said the request between the
load balancer and the web server is not a secure request........ .only the
request object sent between the client and load balancer is https
request........

But is there anyway to find out the scheme of the request between the client
and load balancer....... .....is that data persisted anywhere in the request
between the load balancer and the web server......... ......

"Misbah Arefin" wrote:
how is SSL configured for your site? is it configured in IIS or via some load
balancer or web accelerator?
if its configured on your load balancer / web acceslerator then all requests
to your webserver will be http even if the user request was https. the load
balancer / accelerator offloads the ssl/https operations from your web server

--
Misbah Arefin
https://mcp.support.microsoft.com/profile/MISBAH.AREFIN
http://www.linkedin.com/in/misbaharefin
"Suba" wrote:
Hi

I having a similar issue.

my website url has https://blahblahblah but when i do
Response.Write( Request.Url); it writes the url with http..........i ts really
strange........ i dont have a clue why the url in my browser has https and
request.url has http...........

using the request object i am not able to get the scheme whether its http or
https.......... ..its always returning http whether or not the request is
secure........

Request.Issecur econnection is also always returning false.......... ...........

I need the http scheme for consturcting an url which inturn has to go to a
pdf file which we post to many customers...... ..............A ny idea how to
get the http scheme

Thanks
Suba
Mar 24 '08 #3
Yeah we have a load balancer.....i think as u said the request between the
load balancer and the web server is not a secure request........ .only the
request object sent between the client and load balancer is https
request........

But is there anyway to find out the scheme of the request between the client
and load balancer....... .....is that data persisted anywhere in the request
between the load balancer and the web server......... ......
most load balancer / web accelerators allow for creating custom server
variables... you can create a server variable and set its value if the
request from client to load balancer is https... you can get this value in
your web app via the Request.ServerV ariables collection

--
Misbah Arefin
https://mcp.support.microsoft.com/profile/MISBAH.AREFIN
http://www.linkedin.com/in/misbaharefin

Mar 28 '08 #4

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

Similar topics

9
4514
by: Glenn | last post by:
Is it possible to only redraw a portion of an HTML page as part of a request? With each request, I am updating number of results but do not want to lose where you were in a page. I created anchors at different parts of the page but even this is a bit jumpy. Is there any other way to implement this?
7
28549
by: Ivan Demkovitch | last post by:
Hi! Here is what I'm doing: I have Login.aspx with code to do forms authentification and I have this line at the end: Response.Redirect(Request.UrlReferrer.ToString()); I have other (non-ASP.NET) pages that post to Login.aspx. THis way I accomplish asp.net authentification.
2
5175
by: Roger Twomey | last post by:
I have an application that checks for browser, version and active X enabled. It uses the result for a simple if then. The issue I have is that Request.Browser.MajorVersion is returning the wrong value. I was not getting the result I wanted (no IE browser was version >= 5) even when the browser was version 6. I tried from 2 machines, both running IE 6 with all patches installed. For some reason Request.Browser.MajorVersion returns...
8
2329
by: CDARS | last post by:
Hi all, I have a confusing question on ASP.NET cookies usage: 1> Response.Cookies("test").value = Now 2> Response.Write(Request.Cookies("test").value) 3> 4> Response.write("<hr>") 5> 6> Response.Cookies("test").value = Now.AddDays(10)
3
1432
by: Joe Fallon | last post by:
I have a page in ASP.Net 1.1 which contains an image control. I set the ImageUrl property = "MyImageViewerPage.aspx" This page acts as an image handler. I have an array of bytes which I send to the browser using BinaryWrite. e.g. Response.ContentType = mVar.contenttype Response.BinaryWrite(mVar.MyBytes)
4
2164
by: customerservice | last post by:
I have been tracking website traffic on my site www.grabbagvideo.com:84 and also https://www.grabbagvideo.com for a few weeks now. I am using the request.browser.crawler property in attempt to track crawlers to our auditions and casting call site. However whether the request is recieved at www.grabbagvideo.com or https://www.grabbagvideo.com the log always returns false. However when I do an dns query on host they return inkotomi.com...
3
1860
by: samik | last post by:
I have working on WinXP + IIS 5.0 + .NET 1.1 Whenever i open a page with the url starting as http://localhost/<page addressor http://127.0.0.1/<page addressthe application to hold session values. Session id changes on each request. But when I try with the network ip like http://10.10.10.10/<Page address(where 10.10.10.10 is localhost itself) it works fine. session id remains same. I am using session mode as InProc in web.config and my...
2
2168
by: =?Utf-8?B?d2FsdGVy?= | last post by:
Hi there... we have a list of internal websites. For logging purpose, we would like to attach some client side info in each HTTP request before submit to server. Two options for us : 1) each website can add some script to do so, but the changes are enumerous; 2) it will be nice if we can inject the info on IE before it submit the request back to the server. I personally think option 2 is NOT possible because it posts secuirty issue. I...
0
8443
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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...
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...
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...
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.