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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?U3ViYQ==?=

    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
  • =?Utf-8?B?TWlzYmFoIEFyZWZpbg==?=

    #2
    RE: Request obj returnin http always even in when the browser url is h

    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




    "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

    Comment

    • =?Utf-8?B?U3ViYQ==?=

      #3
      RE: Request obj returnin http always even in when the browser url

      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


      >
      >
      "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

      Comment

      • =?Utf-8?B?TWlzYmFoIEFyZWZpbg==?=

        #4
        RE: Request obj returnin http always even in when the browser url

        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



        Comment

        Working...