HTTP Error 400. The request hostname is invalid.
Hi,
I've developed a web app in ASP.NET and have a Mac user with a problem which I can reproduce. The site uses a generic handler to create and serve/download an Excel file and it works fine on Windows machines in IE, Chrome, Safari (Windows UA) and FF.
To emulate the Mac I'm running Safari on windows with the user agent set to Safari Mac 5.1.6.
If I then go to the URI http://www.domain.com/httphandlers/report.ashx?fn=MemberReport_05_12_2014_08_34_ 45.xlsx, I get the error, Bad Request - Invalid hostname and underneath that, HTTP Error 400. The request hostname is invalid.
If I remove the http://www. from the address bar and press enter, it works fine/as expected and opens the download dialog.
Would anyone have an idea of what I'd need to do for it to work without having to remove the http://www.? I've looked in the Safari settings and can't see anything there that would assist.
Terry.
OS X Yosemite (10.10.1)