Mootools Request, IIS, PHP: HTTP Error 403.1 - Forbidden: Execute access is denied
November 15th, 2008 under codeRecently I came across a “HTTP Error 403.1 - Forbidden: Execute access is denied” error on a site running on IIS. I was using Mootools to make Request calls from a flash site to a php script to print out the data in a simple lightbox type display. Just calling the request like so:
9 10 | var req = new Request({ url:'showPiece.php?'+ur,
onSuccess: function(html) {... |
will cause the server to through an error, but by adding the method param to the request call like so:
9 10 | var req = new Request({method: 'GET', url:'showPiece.php?'+ur,
onSuccess: function(html) {... |
everything works fine.
NOTE: make sure that you use “GET” not “get”, because:
“The HTTP method used to open the connection, such as PUT or PROPFIND. For ServerXMLHTTP, this parameter is case-sensitive and the method name must be entered in all upper-case letters.”
http://msdn2.microsoft.com/en-us/library/ms763809(VS.85).aspx
hope this helps someone out!
Tags: flash site, Forbidden, http error 403, IIS, lightbox, microsoft, Mootools, php script, Request, ServerXMLHTTP