From: "injekt (Lee Jarvis)" Date: 2013-01-11T22:04:00+09:00 Subject: [ruby-core:51379] [ruby-trunk - Bug #7684] Net::HTTPHeader#set_form_data should accept a String Issue #7684 has been updated by injekt (Lee Jarvis). File set_form_data_string.diff added You could just set the content body yourself. But I see no reason why `set_form_data` shouldn't accept a string either ---------------------------------------- Bug #7684: Net::HTTPHeader#set_form_data should accept a String https://bugs.ruby-lang.org/issues/7684#change-35355 Author: postmodern (Hal Brodigan) Status: Open Priority: Normal Assignee: Category: lib Target version: ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux] I noticed that Net::HTTPHeader#set_form_data does not accept already encoded form-data, but instead passes an Array/Hash down to URI.encode_www_form. -- http://bugs.ruby-lang.org/