title: Simple "PUT" file upload with AFNetworking
body: <p>I suppose it is pretty simple but I couldn't figure out how to do it. I want to upload a file to using a PUT request to a webservice using AFNetworking library. This is the curl command I used to test the service</p>
  
  <pre><code>mac:~ user$ curl --verbose -T image.jpeg http://server.org:8001/social/test.jpg
  * About to connect() to server.org port 8001 (#0)
  *   Trying 123.45.123.123...
  * connected
  * Connected to server.org (123.45.123.123) port 8001 (#0)
  &gt; PUT /social/test.jpg HTTP/1.1
  &gt; User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
  &gt; Host: server.org:8001
  &gt; Accept: */*
  &gt; Content-Length: 78341
  &gt; Expect: 100-continue
  &gt; 
  &lt; HTTP/1.1 100 CONTINUE
  &lt; Server: cx1193719-b
  &lt; Content-Type: Text/Html
  &lt; Accept-Ranges: bytes
  &lt; Content-Length: 0
  * We are completely uploaded and fine
  &lt; HTTP/1.1 200 OK
  &lt; Server: cx1193719-b
  &lt; Content-Type: Text/Html
  &lt; Accept-Ranges: bytes
  &lt; Content-Length: 0
  &lt; 
  * Connection #0 to host server.org left intact
  * Closing connection #0
  </code></pre>
  
  <p>I've been able to upload file using POST and form data to other web services, I have used PUT requests (with AFHTTPClient and putPath) but still I don't understand how to do that simple file upload.</p>
  
  <p>Thanks for your help!</p>