Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hank moody

macrumors 6502a
Original poster
Jan 18, 2015
723
352
hi, im not a programmer but maybe someone would help me.

i want to make a simple script (bash script?) that everytime i click in it, it makes a POST HTTPS Request to the https://xxxxxxx.xml with some parameters (ex.: "backup finished") in the body of the request. And then, receive de response to "response.xml".

It's possible?

Thank you
 
I’d probably use cURL (maybe wrapped up in a script).

=> curl --data "param1=value1&param2=value2" http://host/path

You can pass in auth creds, custom headers, etc. I’d probably wind up using Python or Ruby to do it, easily write out (and potentially parse) the return value.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.