I did some testing, and IE does not seem to care about
the capitilization of the location. Basically, one of
three things happen:
- The page opens correctly, if everything is alright
- An error page is generated, if the script has an error, or you forget the second newline, etc.
- It complains about not being able to open the new page, expecially if you are using relative URLs (I suspect you are not)
I have not been able to duplicate your experience. Try rewriting the script like this to see exactly where IE is trying to go:
print "Content-type: text/html\n\n";
print "<H1>Location: http://$url\n\n</H1>\n;
It's probably just something wrong with the $url variable.