convert curl command line call, to curl php call
you can test-run the code version here https://rawgit.com/divinity76/curlcmd_to_curlphp/master/curlcmd_to_curlphp.html
this is not a mature/well-tested program, and im sure there's plenty of edge-case bugs. "all the usual", contributions are very welcome, and you're encouraged to report any bug you find.