Improved PUT support. Added support for CurlFile.