ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: nginx-ru@xxxxxxxxx
  • Subject: 411 Length Required, XMLHttpRequest POST запрос через JQuery.
  • From: "Владислав Комиссаров" <mastyf@xxxxxxxxx>
  • Date: Thu, 21 Aug 2008 15:48:02 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=f3QMkwnGHbh0bytLW5dCiQzVwrfDDWKo4pypQe3Fyg8=; b=ZaoF01I/wopYYHYwvQMfsHbzKhhYOk94dbIUVMz5u39kzHpVu6yy0OA/sOTe+wXu5N haU9kj0PUmP83wQ66IcIWrB/ZszCCx9eeWq0ErIztnntKMy2VOSPwyNezyWKMeJW+n3s YvhU4Zgdby/m2B5CXNXBUQ1i/UazuOWOMkG98=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=wZQJ9LgodeOP4+8yxK1uADhtlgywvMFQdIYdlJnYwK6s1HuyprdtujsOarTyRFKpVU o79678hXtbi/EBuiMDsP0/PHLip6P2kaSW4T9W1oQNW0hCh+3i5AY5iT1Ug3GNVxdSeP D1ZFcMc/0mbINFUYieWpNSIyoTe4/7x+WiEAg=

Пытаюсь сделать 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)

Подскажите, куда копать?

Attachment: debug.log
Description: Binary data

Attachment: nginx.conf
Description: Binary data

Attachment: server.conf
Description: Binary data



 




Copyright © Lexa Software, 1996-2009.