[hunchentoot-devel] accessing xml data from xforms/xhtml post
Ralf Mattes
rm at seid-online.de
Thu Jan 4 14:08:37 UTC 2007
On Thu, 2007-01-04 at 05:56 -0800, dat wrote:
> I'm hoping this isn't in the "lame questions" category... Is there
> a straightforward way to have hunchentoot look at xml data submitted by
> an xforms document? (This comes from playing with firefox with the
> xforms extension.)
>
> Example:
>
> 1. Using the "post" method
> (not "form-data-post"), an xforms document submits xml at the end of
> the day. If the firefox "livehttpheaders" plugin isn't lying, it looks
> something like:
>
> POST /tadmin/qeditor-qcatsel HTTP/1.1
> Host: 127.0.0.1:3000
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061208 Firefox/2.0.0.1
> Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Content-Length: 215
> Content-Type: application/xml
> <?xml version="1.0" encoding="UTF-8"?>
> <Category1/>
> <Category2/>
> <Category3/>
> <Selectaquestion>2 1</Selectaquestion>
> </data>
>
> 2.
> However, Hunchentoot's RAW-POST-DATA returns only "2 1"...all of the
> xml tag information is (apparently) discarded. Is there
> a straightforward way to get anything a littler "rawer"?
>
> Unfortunately, I'm definitely on the lisp 'newbie' side and got lost on planet chunga as I was trying to figure things out...
>
> Thanks for your time and any tips/suggestions/recommendations,
How about raw-post-data (http://weitz.de/hunchentoot/#raw-post-data)?
This will give you the "raw" xml which you can then parse yourself.
HTH Ralf Mattes
> Alan Thompson
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
More information about the Tbnl-devel
mailing list