我有一个手动过程,我正在上传5-6 GB的文件通过curl的Web服务器: curl -X POST –data-binary @myfile.csv http://myserver::port/path/to/api 这个过程工作正常,但我很想使用R自动化它。问题是,我要么不知道我在做什么,或者curl的R库不知道如何处理大于2GB的文件: library(RCurl) postForm( "http://myserver::port/path/to/api", file = fileUpload( filename = path.expand("myfile.csv"), contentType = "text/csv" ),.encoding="utf-8") Yeilds Error: Internal Server Error httr也不起作用: library(httr) POST( url = "http://myserver:port/path/to/api", body = upload_file( path = path.expand("myfile.csv"), type = 'text/csv'), verbose() ) 这产生: Response [http://myserver:port/path/to/api] Date: 2015-06-30 11:11 Status: 400 Content-Type: <unknown> <EMPTY […]