411 Length Required, XMLHttpRequest POST запрос через JQuery.

Владислав Комиссаров mastyf at gmail.com
Thu Aug 21 15:48:02 MSD 2008


Пытаюсь сделать Ajax POST запрос через популярный javascript framework
- "Jquery". Запрос подвисает где-то на секунду и, посмотрев через
FireBug, я получаю:

<html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx/0.7.11</center>
</body>
</html>

uname -a
Linux 1837.ovz23.hc.ru 2.6.18-028stab053.14 #1 SMP Thu Jun 19 12:56:23
MSD 2008 i686 GNU/Linux

/usr/local/nginx/sbin/nginx -v
nginx version: nginx/0.7.11

Debug log и конфиги прилагаются.

У меня подозрение на эту часть дебаг лога.

2008/08/21 14:07:04 [debug] 9922#0: *296 http request line: "POST
/ajax/subscribe/ HTTP/1.1"
2008/08/21 14:07:04 [debug] 9922#0: *296 http uri: "/ajax/subscribe/"
2008/08/21 14:07:04 [debug] 9922#0: *296 http args: ""
2008/08/21 14:07:04 [debug] 9922#0: *296 http exten: ""
2008/08/21 14:07:04 [debug] 9922#0: *296 http process request header line
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: "Host: domain.ru"
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: "User-Agent:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820
Firefox/3.0.1"
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: "Accept: */*"
2008/08/21 14:07:04 [debug] 9922#0: *296 http header:
"Accept-Language: ru,en-us;q=0.7,en;q=0.3"
2008/08/21 14:07:04 [debug] 9922#0: *296 http header:
"Accept-Encoding: gzip,deflate"
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: "Accept-Charset:
windows-1251,utf-8;q=0.7,*;q=0.7"
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: "Keep-Alive: 300"
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: "Connection: keep-alive"
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: "Content-Type:
application/x-www-form-urlencoded; charset=UTF-8"
2008/08/21 14:07:04 [debug] 9922#0: *296 http header:
"X-Requested-With: XMLHttpRequest"
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: "Referer:
http://domain.ru/account/login/"
2008/08/21 14:07:04 [debug] 9922#0: *296 http header: "Content-Length: 33"
2008/08/21 14:07:04 [debug] 9922#0: *296 http alloc large header buffer
2008/08/21 14:07:04 [debug] 9922#0: *296 malloc: 080C2CE0:256
2008/08/21 14:07:04 [debug] 9922#0: *296 malloc: 080C1710:4096
2008/08/21 14:07:04 [debug] 9922#0: *296 http large header alloc: 080C1710 4096
2008/08/21 14:07:04 [debug] 9922#0: *296 http large header copy: 530
2008/08/21 14:07:04 [debug] 9922#0: *296 recv: fd:5 424 of 3566
2008/08/21 14:07:04 [debug] 9922#0: *296 recv: fd:5 -1 of 3142
2008/08/21 14:07:04 [debug] 9922#0: *296 recv() not ready (11:
Resource temporarily unavailable)

Подскажите, куда копать?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20080821/64c6eed6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.log
Type: application/octet-stream
Size: 13745 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20080821/64c6eed6/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx.conf
Type: application/octet-stream
Size: 1898 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20080821/64c6eed6/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.conf
Type: application/octet-stream
Size: 2050 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20080821/64c6eed6/attachment-0002.obj>


More information about the nginx-ru mailing list