0
require 'rubygems'
require 'rest_client'
response = RestClient.post "URL",
"myfile" => File.new("/path/to/file"),
"Cookie" => "Name=michal",
"X-SESSION-ID" => "dsafasdfadsfadsfasfdadf",
"User-Agent" => "UNknow",
"connection" => "Keep-Alive"
如果我嘗試使用上面的代碼來發布文件,則headers
餅乾,用戶代理,X-會話級ID永遠得不到發出的請求...我確認使用wireshark
REST客戶端(紅寶石)不設置Cookie當我嘗試上傳的文件
我做錯了什麼?