【发布时间】:2015-10-22 17:22:37
【问题描述】:
有没有办法使用 Chef http_request 资源进行多部分发布?我有类似以下内容的文件内容,但我需要将表单数据连同它一起发布。
http_request 'post_file_and_form_data' do
headers ({'Content-Type' => 'multipart/form-data'})
url "http://myhost:2000/myapp/upload"
action :post
message lazy { ::File.read("/somewhere/myFile.yaml") }
end
【问题讨论】:
标签: chef-infra multipartform-data chef-recipe