Re: Server.transfer and ssl

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kevin Spencer (kevin_at_takempis.com)
Date: 03/12/04


Date: Fri, 12 Mar 2004 08:59:49 -0500

It is the "https" in the url that instructs the server to use SSL, and the
"http" in the url that tells the server to switch back to non-SSL. It is the
browser request that initialtes the switch. Using Server.Transfer doesn't
give the browser the opportunity to specify a protocol. Even in a secured
page, if the links on the client are relative, the browser simply appends
the protocol and domain information (from the current page request) to the
relative pathe in its request, so that links in a client-side page that
change the protocol must be absolute, including the protocol. You may want
to try Response.Redirect, which passes a url to the browser, instructing to
make a fresh request for that url.

-- 
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Gigino" <realthing999@yahoo.it> wrote in message
news:18b07ef0.0403120516.129a6efb@posting.google.com...
> I need to protect only few pages, not all... so i wanted to use ssl
> only when needed for performance reasons.
>
> "Chad Z. Hower aka Kudzu" <cpub@hower.org> wrote in message
news:<Xns9496A311255B5cpub@127.0.0.1>...
> > realthing999@yahoo.it (Gigino) wrote in
> > news:18b07ef0.0402210320.485d9ecf@posting.google.com:
> > > page using Secure Socket Layer; the problem is:
> > > i call the page web form http://server/page1.aspx; when i submit this
> > > form, i wanted to use the server.transfer to go to
> > > https://server/page2.aspx with ssl, but the Transfer method doesn't
> > > allow absolute path. Is there a way to do something like that or  need
> > > i to call with https all my pages?
> >
> > Why not just have the user start at https://server/page1.aspx?


Relevant Pages

  • Re: Problem finding source for php page
    ... I think it has something to do with https because if I change the protocol ... to http then the expected file is used. ... >>but when I change the file, the changes are not reflected in my browser ...
    (comp.lang.php)
  • Re: WIN XP SP2/IE6 SP1 -Blank Address Bar - Invalid Syntax Error - Page cannot be displa
    ... In the registry you will find a number of entries under HKCR that are ... You should see a number of keys under each protocol ... The https timekeeping website is on our intranet and is JRE enabled (uses ... find any key named "protocol handler". ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Open browser and post to https page
    ... >> and password to a server via HTTPS? ... > I want to know if it is possible for the windows application, ... > application opens a full browser window, ...
    (comp.lang.basic.visual.misc)
  • RE: Detecting Secure requesting when hardware based SSL offloading is
    ... If they are removing the request from the ... HTTPS context, and rerouting to an HTTP URL in the backend then you are ... framework detects and redirects the browser over HTTPS. ... > Server and given it to an Hardware SSL offloader. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: History
    ... > HTTPS (Hypertext Transfer Protocol over Secure Socket Layer, ... Or over TLS, the successor of SSL. ... There is a huge difference in meaning between the term "security protocol" ... And even if that were so (I wonder what "common use" means to a person ...
    (comp.lang.javascript)