[jQuery] Ajax request Error - please help

[jQuery] Ajax request Error - please help


Hi,
In localhost, all of my ajax request work perfectly,
but on the prod server, whenever I try to make an ajax request, the
following error appear:
(This is the code used to display the error:
error: function(xhr, status, ex) {
    var msg = "Error ajax edit profile :\n\n";
    msg += "RESPONSE TEXT :\n";
    msg += xhr.responseText + "\n\n";
    msg += "STATUS :\n";
    msg += status + "\n";
    msg += xhr.status + "\n\n";
    msg += "EXCEPTION :\n";
    msg += ex;
    alert(msg);
},
)
Error ajax edit profile :
RESPONSE TEXT :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE
type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to process the request:
<PRE>
POST /public/xxx/tree/get-computer-by-a/a/A782 HTTP/1.0
Host: xyz.belfla.be
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.3)
Gecko/2008092417 Firefox/3.0.3
Accept: application/json, text/javascript, */*
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: identity,gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
X-Requested-With: XMLHttpRequest
Referer: http://xyz.belfla.be/public/xxx/auth/login
Cookie: PHPSESSID=sjaj2sb252kcqm3th88iivg5ke
Authorization: Basic ahlbQ==
Pragma: no-cache
Cache-Control: no-cache
</PRE>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Invalid Request
</STRONG>
</UL>
<P>
Some aspect of the HTTP Request is invalid. Possible problems:
<UL>
<LI>Missing or unknown request method
<LI>Missing URL
<LI>Missing HTTP Identifier (HTTP/1.0)
<LI>Request is too large
<LI>Content-Length missing for POST or PUT requests
<LI>Illegal character in hostname; underscores are not allowed
</UL>
<P>Your cache administrator is mailto:webmaster webmaster .
<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Thu, 09 Oct 2008 17:09:09 GMT by netgate.xyz (squid/2.6.STABLE14)
</ADDRESS>
</BODY></HTML>
STATUS :
error
411
EXCEPTION :
undefined
In Firebug, the following appear under tab Heading:
Response
Server    squid/2.6.STABLE14
Date    Thu, 09 Oct 2008 17:09:09 GMT
Content-Type    text/html
Content-Length    1854
Expires    Thu, 09 Oct 2008 17:09:09 GMT
X-Squid-Error    ERR_INVALID_REQ 0
X-Cache    MISS from netgate.xyz
X-Cache-Lookup    NONE from netgate.xyz:4138
Via    1.0 netgate.xyz:4138(squid/2.6.STABLE14)
Proxy-Connection    close
Request
Host    xyz.belfla.be
User-Agent    Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.3)
Gecko/2008092417 Firefox/3.0.3
Accept    application/json, text/javascript, */*
Accept-Language    fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding    gzip,deflate
Accept-Charset    ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive    300
Connection    keep-alive
X-Requested-With    XMLHttpRequest
Referer    http://xyz.belfla.be/public/xxx/auth/login
Cookie    PHPSESSID=sjaj2sb2kcqm3th88iivg5ke
Under tab Response:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"