Mootools Request, IIS, PHP: HTTP Error 403.1 – Forbidden: Execute access is denied

November 15th, 2008 under code

Recently 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!

  • Share/Bookmark

Tags: , , , , , , , , ,

My Gallery at Zazzle

One Response to “Mootools Request, IIS, PHP: HTTP Error 403.1 – Forbidden: Execute access is denied”

  1. hey matey, tried it but it didnt work. im using the facebook mootools autocomplete which has a Request.JSON, tried this but it doesnt work for me.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">