Simple “PUT” file upload with AFNetworking
问题 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 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) > PUT /social/test.jpg HTTP/1.1 > User-Agent: curl/7.24.0