I am trying to add an "export as RTF" facility to my website. The code which handles the /export url call basically creates the appropriate export content and then sends the Content-type header as text/rtf and echo's the export content.
All is well in most browsers, but in Internet Explorer 8 (i'm not sure about other IE versions) I get "Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found"
The same thing happens if I use SS_HTTPRequest::send_file.
I've been searching around for ages for a solution but can't find anything. This code works perfectly well from a test php file outside SilverStripe. Has any-one seen this before? Does any-one know how to get round the problem?