wget sent edited xml as post data
Hi all,
To make an rpc call I need to sent an xml file as post data.
I know how to do this with wget. It works fine when I have the xml already filled in (depending on the node values the response from the call is different).
However I want to be able to edit part of this file, and then sent that as post data using wget.
I can edit this file using sed (I dont want to rewrite the files each time this gets used; and it does get used alot, with alot of different values).
Is there some way I can use a HERE document? And what about escaping all the xml code?
Thanks in advance
|