title: Using HTTP cURL to post JSON data with an image file
body: <p>I am using django-rest-framework and I have a registration form that accepts some data which includes an image file of the user.</p>
  
  <p>How can I emulate this using cURL? I can post JSON data like the following: </p>
  
  <pre><code>curl -i -X POST -H "Content-Type: application/json" -d '{"email_address":"email@address.com", "password": "Password", "display_name": "mark", "full_name": "Mark", "gender": "M", "date_of_birth": "1955-05-05", "location_id": "3"}' http://localhost/register
  </code></pre>
  
  <p>How can I add an image field to this form?</p>