bugfixes for put method 

- make the --data parameter not mandatory (so you can use --from)
- use the method parameter in readFileOrFiles not HTTPMETHOD.POST (for the single file case)