Did you verify the actual URL that's being sent?
In Internet Explorer, you can click on F12 and go to the Network tab. Start capturing then click on the button or do whatever is necessary to activate/refresh the HTML viewer. Check if the URL sent is correct, i.e. doesn't contain extra blanks, other characters etc.
It should match the exact URL that you know to be working OK.