bash - Is there an option to wget to force it to write the response even when it's erroneous? -


i have written bash soap library uses wget interface http servers. it's intentional avoid curl, since not available or not installed default on systems library used.

the basis of library query wsdl, determine parameters , allow functions / methods invoked command line, through simple wrapper setup soap urls:

$ ./mysoap.sh mymethod skey=1234 banotherparameter=false sanotherparam="hello" 

however, when wget receives 500 response, doesn't write response body output document defined -o. response contains soap errors server generated, useful client. there way force wget write response output document, regardless of state? documentation seems unclear function of -o in event of error, me, it's not working intended.

this option:

parameter: --content-on-error, available wget 1.14:

https://superuser.com/a/648466


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -