Getting POSTed XML

625 views
Skip to first unread message

Chad Lung

unread,
Feb 5, 2012, 12:57:35 PM2/5/12
to Express
I have a scenario where I need to POST some XML data. I've noticed
though using Express that I never see the XML (in the request body).
Doing some searching I seen that I can use:

connect.bodyParser.parse['application/atom+xml'] = someFunction

The issue is I still don't see the request body containing the posted
XML using the above method. Is it possible to POST XML to Express and
capture it?

Thanks for any help.

Chad

vision media [ Tj Holowaychuk ]

unread,
Feb 5, 2012, 1:03:53 PM2/5/12
to expre...@googlegroups.com
take a look at how connect implements application/json etc, you would just do similar and use an xml parser


Chad

--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.




--
Tj Holowaychuk
Vision Media
President & Creative Lead

Chad Lung

unread,
Feb 5, 2012, 1:15:34 PM2/5/12
to Express

Excellent, thanks!


On Feb 5, 12:03 pm, "vision media [ Tj Holowaychuk ]" <t...@vision-

Arush Sehgal

unread,
Jan 2, 2013, 1:03:41 PM1/2/13
to expre...@googlegroups.com
For future google searches, I've made a module to solve this. 

Reply all
Reply to author
Forward
0 new messages