Added curlopt_file for direct filewriting (helpful with large files