Making setOptions() method actually user configurable and added more curlopts
Added upload options
Add referer option
Fix formatting...
Added curlopt_file for direct filewriting (helpful with large files
Merge remote-tracking branch 'upstream/pr/11297' into pr/11297

* upstream/pr/11297:
  Added curlopt_file for direct filewriting (helpful with large files
  Fix formatting...
  Add referer option
  Added upload options
  Making setOptions() method actually user configurable and added more curlopts