i want to post an XML file to a servlet. i have this working by sending the entire file as the content of the servlet like this:
this seems to be working fine. but now i need to extend this by sending some parameters with the POST. i don't want to use the query string for these params. i have been reading that attributes are sent as name/value pairs in the POST's content so a=foo&b=bar etc. am atuck with the general approach.
should i make a string out of the params and send it at the front of the xml file, and make the XML content itself into an attribute of the post e.g.
and how would i handle this on the server side? could i use HttpUtils.parsePostData(), even with what might be a big xml document? would i need to encode the string?
or is there a better approach? i have very limited implementation time so simple will win over comprehensive
thanks a lot for any advice and help,