Maybe this stems from built-in exceptions for CGI combined with unexpected server response. Have you tested with .cgi or .pl or .plx etc instead of .exe? What about different content types declared by the server?