bugfixes for put method 

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