download by File + Fix curl resp parsing

- add download by file upload (from server) method
- fixing curl response parsing