Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / September 2007



Tip: Looking for answers? Try searching our database.

cflocation is not redirecting properly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
marekss - 10 Sep 2007 23:09 GMT
I recently encountere a problem with cflocation.
When i use it like this:
<cflocation url="http://www.abc.com/submission.cfm?cat=4&pid=534672">
it is working fine, but the problem is when I include url encoded perameter
like
<cflocation
url="http://www.abc.com/submission.cfm?cat=4&pid=534672&page=http%3A%2F%2Fwww.ab
c.com%2Ftest%2F9999%2F534672%2Freview.htm%3Fformat%3Dembedded">
Then it is not redirecting and browser is displaying error message that the
request is not redirecting properly.
Is there a bug in cflocation or am I doing something wong?
Please let me know
BKBK - 11 Sep 2007 06:45 GMT
I copied your tag to my Coldfusion 8 server. It works.

Cold the problem be caused by other code? What happens when the test page
contains just the tag, and the page [i]submission.cfm[/i] contains just

<cfdump var="#url#">
marekss - 11 Sep 2007 17:00 GMT
I am using CF7 and do not know if that is CF7 issue.
When I remove page url parameter it works fine, so maybe there is something wrong with the way page parameter is encoded.
Adam Cameron - 11 Sep 2007 11:03 GMT
Make sure there's no white space in your URL, especially chr(10) or chr(13)
characters.  Those especially are illegal.

It might also be worth while running an HTTP sniffer on the client PC to
see what HTTP traffic is being generated by the process: it'll give you an
idea as to what part is going wrong.

What's the EXACT and complete error message you're getting?  Is it a
browser error or a CF error?

Signature

Adam

marekss - 11 Sep 2007 16:56 GMT
Below is a browser error that I am getting:

Firefox has detected that the server is redirecting the request for this
address in a way that will never complete.

IE does not display error but it never redirects either
Adam Cameron - 11 Sep 2007 21:23 GMT
Did you act on / investigate any of the other points I made in my preceding
post?

Signature

Adam

c_wigginton - 11 Sep 2007 17:00 GMT
According to the Firefox wiki, (look for redirect loop) in regards to your
error message

http://wiki.mozilla.org/Firefox:1.5_Network_Error_Messages

"Change your cookies settings in "Preferences" to accept cookies for this
site. "
BKBK - 12 Sep 2007 06:44 GMT
[i]I am using CF7 and do not know if that is CF7 issue.[/i]
Easy to find out. Just copy


http://www.abc.com/submission.cfm?cat=4&pid=534672&page=http%3A%2F%2Fwww.abc.com
%2Ftest%2F9999%2F534672%2Freview.htm%3Fformat%3Dembedded

into your IE and then into Firefox. What do they say?
marekss - 13 Sep 2007 19:29 GMT
The problem was with chr(10) or chr(13) being part of the query string.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.