I suspect your issue is that you have a slash in your query string, and that requires an escape. What happens when you try to grab http://www.example.com/FileServe?file=xml%2Fmyfile.xml, i.e. run the example code I gave?
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.