> I'm having some weirdness with CFLOCATION on CF 4.0.1.  I can't see
> any way that this isn't a bug / limitation in something, but I was
> wondering if others might have the clue that I lack.
> 
> If I do this, the page request hangs indefinitely:
> 
> <!--- Lots of processing to produce TheImgURL omitted... --->
> <Cflocation url="#TheImgURL#" addtoken="No">
> 
> 
> If I do this, it "works":
> <!--- Same processing as above omitted... --->
> <cfoutput>
> <html><head><meta http-equiv="refresh"
> content="0;URL=#TheImgURL#"></head>
> <body bgcolor="##000000">Hang on a sec...</body>
> </html>
> </cfoutput>
> <Cfabort>
> 
> Now granted that the URL I'm producing will be rather on the long
> side, is there any size limitation in CFLOCATION or in the HTTP
> protocol redirect functionality?
> 
> I'm out of ideas...  This workaround does the job, but it's still
> kind of obnoxious...

I haven't run into this specific problem, but here are a couple of things
I'd try.

First, is the server hanging indefinitely, or is the browser hanging when
processing the redirect header? You can find this out by using a client that
doesn't support redirects, like telnet, netcat, or HTTP Analyzer
(http://www.coolfusion.com/). I wouldn't be surprised if it's a problem on
the client.

Second, if it does turn out to be a server problem, I can't see why it would
have to do with the variable output in the CFLOCATION tag as opposed to
writing the variable in the HTML page content. (Not that this means the
problem couldn't have to do with the CFLOCATION tag specifically, just that
I can't see how.) It might, though, have to do with a "timing" issue - you
might be processing the redirect so fast that the page to which you redirect
isn't ready for you! You might try delaying the CFLOCATION for testing
purposes, using a loop, to see what happens.

In any case, I'd be interested in the results.

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

~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server!  Instant Activation for $99/month w/Free Setup 
from SoloServer  PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support  Visit 
SoloServer, https://secure.irides.com/clientsetup.cfm.

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to