Do you have any idea how to upload files through PUT request?

This is what I have for now:
http://stackoverflow.com/questions/15106849/curl-php-uploading-files-with-put-request-how-do-i-process-this

Thanks