Uploading a file using ruby Net:HTTP API to a remote apache server failing with 409 Conflict
- 阅读更多 关于 Uploading a file using ruby Net:HTTP API to a remote apache server failing with 409 Conflict
问题 Below is a program to upload a file from local file system to a remote Apache server. The program ends with a 409 conflict error. Is there any advice what am I doing wrong? I turned DAV on in httpd.conf and gave all necessary permissions, but I still had no luck. I can post the httpd.conf should it be needed. This is the code: BOUNDARY = "AaB03xZZZZZZ11322321111XSDW" uri = URI.parse("http://localhost/dropbox/") file = "/tmp/KEYS.txt" http = Net::HTTP.new(uri.host, uri.port) request = Net: