Change Curl class to use custom request for post requests only as put requests must be set with CURLOPT_INFILE and CURLOPT_INFILESIZE.

refs #4605