Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
AJAX Post returns 403 with FireFox
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
t...@fmdeveloper.com  
View profile  
 More options Mar 30 2007, 2:44 pm
Newsgroups: mozilla.dev.ajax
From: t...@fmdeveloper.com
Date: Fri, 30 Mar 2007 13:44:54 -0500
Local: Fri, Mar 30 2007 2:44 pm
Subject: AJAX Post returns 403 with FireFox
Currently transitioning from a shared host to a dedicated server. The same code
that works on the old server is not working on the dedicated server. It is a
simple AJAX request like:

<code>
function createXMLHttpRequest() {
    if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }

}

function doRequestUsingPOST() {
    createXMLHttpRequest();
    var queryString = "response.php?";
    queryString = queryString + createQueryString() ;
    xmlHttp.onreadystatechange = handleStateChange;
    xmlHttp.open("POST", queryString, true);
    xmlHttp.send(null);
}

</code>

With the code as is above, the requests works fine in IE. With Firefox it throws
a 403 on the page. A call to the response.php page with parameters runs
correctly outside of AJAX call. Changing all POST requests to GET resolves the
issue, but I would prefer not to have to change ALL POST requests to GET requests.

Does anyone know of a setting on the new server that can cause FireFox (1.5.x
and 2.0.x) to return a 403 with an AJAX post call?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francis S  
View profile  
(1 user)  More options May 25 2007, 10:38 am
Newsgroups: mozilla.dev.ajax
From: Francis S <francis...@gmail.com>
Date: 25 May 2007 07:38:17 -0700
Local: Fri, May 25 2007 10:38 am
Subject: Re: AJAX Post returns 403 with FireFox
On Mar 31, 2:44 am, t...@fmdeveloper.com wrote:

//in .htaccess

SecFilterEngine Off


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Cormier  
View profile  
 More options May 27 2007, 11:26 pm
Newsgroups: mozilla.dev.ajax
From: "Tim Cormier" <t...@fmdeveloper.com>
Date: Sun, 27 May 2007 20:26:38 -0700
Local: Sun, May 27 2007 11:26 pm
Subject: Re: AJAX Post returns 403 with FireFox
That was the solution. Any idea why it only creates an issue with FireFox? I
would like to be able to run the server with this setting on...but also want
FireFox to work. Do you think it is a FireFox bug, or the security filter
bug, or not a bug at all?

Tim

Message: 1
Date: 25 May 2007 07:38:17 -0700
From: Francis S <francis...@gmail.com>
Subject: Re: AJAX Post returns 403 with FireFox
To: dev-a...@lists.mozilla.org
Message-ID: <1180103897.667192.46200@q19g2000prn.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"

On Mar 31, 2:44 am, t...@fmdeveloper.com wrote:

//in .htaccess

SecFilterEngine Off

------------------------------

_______________________________________________
dev-ajax mailing list
dev-a...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-ajax

End of dev-ajax Digest, Vol 16, Issue 5
***************************************


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Ross  
View profile  
(1 user)  More options May 28 2007, 5:55 pm
Newsgroups: mozilla.dev.ajax
From: "James Ross" <sil...@warwickcompsoc.co.uk>
Date: Mon, 28 May 2007 22:55:44 +0100
Local: Mon, May 28 2007 5:55 pm
Subject: Re: AJAX Post returns 403 with FireFox
"Tim Cormier" <t...@fmdeveloper.com> wrote in message

news:mailman.48.1180322821.7364.dev-ajax@lists.mozilla.org...

> That was the solution. Any idea why it only creates an issue with FireFox?
> I
> would like to be able to run the server with this setting on...but also
> want
> FireFox to work. Do you think it is a FireFox bug, or the security filter
> bug, or not a bug at all?

IIRC, the "issue" is that Firefox doesn't send a Content-Length header with
the POST request if you call send with null or an empty string, and it looks
like Apache's "SecFilterEngine" (security filter I guess) is rejecting the
POST because of the missing header. My understanding is that it is not
required, although without it you cannot use Keep-Alive on that connection
afterwards.

In my current project work, I specifically send a value in the postdata
(which is ignored by the receiving end) to work around this problem.

--
James Ross <sil...@warwickcompsoc.co.uk>
ChatZilla and Venkman Developer


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google