• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cflocation is not redirecting properly

Explorer ,
Sep 10, 2007 Sep 10, 2007

Copy link to clipboard

Copied

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.abc.com%2Ftest%2F9999%2F534...
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
TOPICS
Advanced techniques

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 10, 2007 Sep 10, 2007

Copy link to clipboard

Copied

I copied your tag to my Coldfusion 8 server. It works.

Could the problem be caused by other code? What happens when the test page contains just the tag, and the page submission.cfm contains just

<cfdump var="#url#">

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 11, 2007 Sep 11, 2007

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2007 Sep 11, 2007

Copy link to clipboard

Copied

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?

--
Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 11, 2007 Sep 11, 2007

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2007 Sep 11, 2007

Copy link to clipboard

Copied

Did you act on / investigate any of the other points I made in my preceding
post?

--
Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 11, 2007 Sep 11, 2007

Copy link to clipboard

Copied

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. "

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2007 Sep 11, 2007

Copy link to clipboard

Copied

I am using CF7 and do not know if that is CF7 issue.
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%2F534...

into your IE and then into Firefox. What do they say?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 13, 2007 Sep 13, 2007

Copy link to clipboard

Copied

LATEST
The problem was with chr(10) or chr(13) being part of the query string.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation