Trying to make http put automation

Maybe you dont need a switch at all:
Check out the answer from lolouk44 here: Pass arguments to shell_command on event

I DONT KNOW IF HIS CODE WORKS, but it looks like something in the right direction!

/Tonkin