[hunchentoot-devel] Timing out when reading long post requests?
Oleg Sivokon
olegsivokon at gmail.com
Thu Jul 7 08:31:06 UTC 2011
OK, this is the last one for today at least :) Here's how it worked, too,
now 100% sure, tried it a few times with refreshing all loggs etc. So it
looks like there might be some particular problem with maybe appending bytes
from the post body as it is received or something similar? Well, just a
guess...
POST /analytics HTTP/1.1
Host: localhost:8080
Accept: */*
Accept-Language: en-us
User-Agent: Shockwave Flash
x-flash-version: 10,0,45,2
Content-Type: application/x-www-form-urlencoded
Content-Length: 1821
Expect: 100-continue
HTTP/1.1 100 Continue
<xml data>
-------------------------------------------------------------------
HTTP/1.1 200 OK
Content-Length: 2
Date: Thu, 07 Jul 2011 08:20:50 GMT
Server: Hunchentoot 1.1.1
Content-Type: text/html; charset=iso-8859-1
ok
This worked:
(defun analytics-service ()
(save-parsed-events
(dom:first-child
(flexi-streams:with-input-from-sequence
(stream (hunchentoot:raw-post-data
:request hunchentoot:*request*
:force-binary t))
(cxml:parse-stream
stream (cxml-dom:make-dom-builder)))))
"ok")
Best.
Oleg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20110707/6da0b78c/attachment.html>
More information about the Tbnl-devel
mailing list