sorry to bump an old thread. Can create a new one if required.
When i use the above code, it works in firefox, but when using i.e., i get the error:
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)
Any ideas why?