Re: exact url typed in browser

From: bruce barker (nospam_brubar_at_safeco.com)
Date: 09/16/04


Date: Wed, 15 Sep 2004 17:21:20 -0700

when IIS recieves a request for http://foo.bar.com/ , is scans the directory
for a default page, and if found, then sends a redirect to the browser. the
browser then sends a request the new url (this is what you see in the server
variables).

you could write a module that did not use the redirect method, but used url
rewriting and passed the original url as an additional header that the pages
could lookup.

-- bruce (sqlwork.com)

"Daniel Bauke" <bonkey@bonkey.pl.eu.org> wrote in message
news:uGSUnf2mEHA.556@tk2msftngp13.phx.gbl...
> how i can retrieve an exact url typed by user in a browser? in
> particular i'd like to get http://foo.bar.com/ without default content
> page defined in 'Documents' section in iis. i can't find proper
> ServerVariable, nor property in Request.
> the only way i see at the moment is to write own httpmodule or put
> aspnet_isapi.dll in wildcard application maps in iis application config
> and check the url in Application_BeginRequest, but both are extremaly
> unconvinient since i'd like to provide only a simple control for many
> different sites.
> or maybe it's just a misconfiguration? i use asp 1.1sp1 on iis/w2k3, but
> as i mentioned -- it should work in different environments.
>
> --
> Daniel Bauke; http://www.bonkey.pl.eu.org; happiness==bike&&unix^W.net;}



Relevant Pages

  • Re: Custom 401 page problems
    ... Since you configured IIS to send a staic for this ... Now, a 401 response comes back to the client, and the entite body is the ... it is going to make a new request for this resource ... What request do you think the browser makes to fetch the 401.gif ??? ...
    (microsoft.public.inetserver.iis)
  • Re: IIS Extensions in URL causes filter to break.
    ... I delete all cached files at the browser to ensure that the browser ... I confirmed using NetMon on IIS server that the static HTML is ... What my filter does exactly? ... It filters every incoming request looking for "mystring" inside it. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Multiple sites
    ... >> distinguish them by using host headers. ... When IIS ... browser. ... >> request. ...
    (microsoft.public.inetserver.iis.security)
  • Re: HTTP ping pong
    ... The server responds with web page. ... This is the browser parsing the HTML, ... Sometimes there is a redirect. ... browser to request the next leg and wait for the response. ...
    (comp.lang.java.help)
  • Re: LWP and 302 redirects
    ... change the conditions under which the request was issued. ... "Redirect in response to POST transaction". ... browser does not behave itself. ... My recommendation would be to configure the user-advertised URL as a ...
    (comp.lang.perl.misc)

Loading