It is client side. The only thing the server does is tell the client
that it needs to the redirect to a different location.  The client is
generally smart enough to handle this without you a page refresh, but
this does not diminish the fact that the client does 99% of the work. 
The client could just sit there and say it couldn't understand what
all this redirect stuff means.

Anyhow, regardless of what we thing is and isn't a client-side
redirect, using <cflocation> (http response code 307) is a client side
redirect and using getPageContext().forward() is a server-side
redirect.  Get over it and move on.

On Mon, 16 Aug 2004 17:04:09 +0100, Greg Stewart <[EMAIL PROTECTED]> wrote:
> My understanding of server side, means that there would be no trip
> back to the browser. So using getPageContext().forward() there would
> be no 302 error code being passed back to the browser.
> 
> Here is my capture when requesting page1.cfm and using
> getPageContext().forward("page2.cfm"). You can clearly see no round
> trip traffic, nothing at all showing up in the HTTP headers.
> 
> http://dev.simmons-simmons.greg/experiments/serverSide/page1.cfm
> 
> GET /experiments/serverSide/page1.cfm HTTP/1.1
> Host: dev.simmons-simmons.greg
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7)
> Gecko/20040614 Firefox/0.8
> Accept: 
> application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Cookie: JSESSIONID=9a301986441092671843343
> 
> HTTP/1.x 200 OK
> Date: Mon, 16 Aug 2004 15:59:03 GMT
> Server: Apache/1.3.20 (Win32) JRun/4.0
> Content-Language: en-GB
> Keep-Alive: timeout=15, max=100
> Connection: Keep-Alive
> Transfer-Encoding: chunked
> Content-Type: text/html; charset=UTF-8
> ----------------------------------------------------------
> 
> Anyway that's my understanding of server side. Don't you just love
> have a little time on your hands!!! ;)
> 
> G
> 
> 
> 
> On Fri, 13 Aug 2004 16:38:01 +1000, Mark Stanton <[EMAIL PROTECTED]> wrote:
> > Here's the HTTP headers for a simple cflocation example. I've got two
> > pages page1.cfm and page2.cfm. page1.cfm hasa  <cflocation
> > url="page2.cfm"> to page2.
> >
> > 1. Client requests http://mark.gruden.int/workspace/Tests/CF/page1.cfm
> >
> > ----------------------------------------------------------
> > GET /workspace/Tests/CF/page1.cfm HTTP/1.1
> > Host: mark.gruden.int
> > ----------------------------------------------------------
> >
> > 2. <cflocation> is run and server responds telling the client the
> > resource has moved:
> >
> > ----------------------------------------------------------
> > HTTP/1.x 302 Moved Temporarily
> > Location: page2.cfm
> > ----------------------------------------------------------
> >
> > 3. Client goes to fetch the new location
> > http://mark.gruden.int/workspace/Tests/CF/page2.cfm
> >
> > ---------------------------------------------------------
> > GET /workspace/Tests/CF/page2.cfm HTTP/1.1
> > Host: mark.gruden.int
> > ----------------------------------------------------------
> >
> > 4. Server responds with a 200 - page found message and the page
> > content for page2.cfm
> >
> > ---------------------------------------------------------
> > HTTP/1.x 200 OK
> > ---------------------------------------------------------
> >
> > So is that client side or server side? Well the server tells the
> > client - "I'm not going to give you page1.cfm go get page2.cfmI
> > instead." - the client then goes off and fetches page2.cfm. I 'd call
> > that server side.
> >
> > --
> > Mark Stanton
> > Gruden Pty Ltd
> > http://www.gruden.com
> >
> > ---
> > You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> > To unsubscribe send a blank email to [EMAIL PROTECTED]
> > Aussie Macromedia Developers: http://lists.daemon.com.au/
> >
> 
> 
> --
> e: greg.stewart(a)gmail.com
> w: http://gregs.tcias.co.uk/
> 
> 
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
> 


-- 
Paul Kenney
[EMAIL PROTECTED]

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to