<div dir="ltr"><div>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...</div>
<div><br></div><div>POST /analytics HTTP/1.1</div><div>Host: localhost:8080</div><div>Accept: */*</div><div>Accept-Language: en-us</div><div>User-Agent: Shockwave Flash</div><div>x-flash-version: 10,0,45,2</div><div>Content-Type: application/x-www-form-urlencoded</div>
<div>Content-Length: 1821</div><div>Expect: 100-continue</div><div><br></div><div>HTTP/1.1 100 Continue</div><div><xml data></div><div>-------------------------------------------------------------------</div><div><div>
HTTP/1.1 200 OK</div><div>Content-Length: 2</div><div>Date: Thu, 07 Jul 2011 08:20:50 GMT</div><div>Server: Hunchentoot 1.1.1</div><div>Content-Type: text/html; charset=iso-8859-1</div><div><br></div><div>ok</div></div><div>
<br></div><div>This worked:</div><div><br></div><div><div>(defun analytics-service ()</div><div> (save-parsed-events</div><div> (dom:first-child</div><div> (flexi-streams:with-input-from-sequence</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>(stream (hunchentoot:raw-post-data</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span> :request hunchentoot:*request* </div><div><span class="Apple-tab-span" style="white-space:pre"> </span> :force-binary t))</div><div> (cxml:parse-stream </div>
<div> stream (cxml-dom:make-dom-builder)))))</div><div> "ok")</div></div><div><br></div><div>Best.</div><div><br></div><div>Oleg</div></div>