tags:

views:

611

answers:

1

hi

i have a client requirement where i should submit an xml file with data and to recive the processed data through poll reponse. i used curl to trasfer the file from commandline to http site. curl -v -d @request1l.xml -H "Content-Type: text/xml; charset=utf8" http://**/ws -o request2.xml .

now to get the poll response into an xml what should i do? which is the command used for this?

also how do i track the errors during the post or poll request?

i am very fresh to web technology and just understanding the things.

brgds arun

+1  A: 

You likely want to use -Ss to silence the stats and show errors. the return code from the call give you errors if they happen. Unless the site you are uploading to, returns an XML response, you will likely have to create one from the response code as needed.

sfossen