June 18th, 2011
curl cheat
# post with HTTP Basic auth and file data curl -H 'X-Requested-With: XMLHttpRequest' --user username:password \ --form "key=value" \ --form file=@filename.jpg \ http://servername.com/endpoint
# post with HTTP Basic auth and file data curl -H 'X-Requested-With: XMLHttpRequest' --user username:password \ --form "key=value" \ --form file=@filename.jpg \ http://servername.com/endpoint