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

Comments are closed.