Forum Moderators: coopster & phranque

Message Too Old, No Replies

Per "Location" returning text not URLl

         

carfac

3:46 am on Apr 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi:

I am working on a perl script, and using a command I have used many times before... but it is reacting different this time and I do not know why! I want to redirect to a different URL, and I use this command:

if ($IN->param('select') =~ 'Word') {
print "Location: [mydomain.com...]
}

Rather than returning the page I specify, I get a blank white page with his as text:

Location: [mydomain.com...]

And, yes, the actual URL does work!

So why is it not working?

Dave

Moby_Dim

5:05 am on Apr 12, 2005 (gmt 0)

10+ Year Member



Haven't you declared somewhere before something like Content-type: text/plain\n\n?

carfac

5:42 am on Apr 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, nothing like: text/plain

Moby_Dim

6:50 am on Apr 12, 2005 (gmt 0)

10+ Year Member



Something with headers anyway. Remove all except this procedure and try. (Hope, you are agree that the problem is in your code, and not in Perl). Then add some code and try again. And you'll find the bug.

Still I'm nearly to bet that headers printing was used somewhere above in the code.

Moby_Dim

6:59 am on Apr 12, 2005 (gmt 0)

10+ Year Member



Or if you use required script(s), look through'em too.