>> It's then up to your browser to request the other URL.

Oh I didn't even know that. Cool. :)

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 11:19 AM
To: CF-Talk
Subject: RE: CFLOCATION mechanism..?


> Hoping someone can shed some light on the underlying 
> mechanism that CFLOCATION uses to perform the re-direct. 
> My current understanding is that it simply returns a 
> header to the browser for a client side re-direct. However, 
> I was testing to see if setting IE's "Allow META Refresh" to
> "DISABLE" would break CFLOCATION and I was surprised to see 
> that it *did not*. It did however break <cfheader 
> name="refresh" value="0; URL=foo.cfm"> which makes sense. 
> What's going on here?

When you use CFLOCATION, it's creating an HTTP response header which looks a
little like this:

HTTP/1.1 302 Object Moved
Location: someotherfile.html
...

It's then up to your browser to request the other URL.

A "META refresh", on the other hand, is an instruction embedded within an
HTML page, using the META tag, which is something else entirely. An HTML
author can't force the web server to return specific HTTP headers, and the
META tag can be used to provide similar functionality. I'm kind of surprised
that IE's setting stopped the CFHEADER tag from working, since that's a real
HTTP response header, rather than a META tag, but it's not like there aren't
any other bugs in IE, so I'm not too surprised.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to