swdyh (owner)

Revisions

gist: 184621 Download_button fork
public
Public Clone URL: git://gist.github.com/184621.git
Embed All Files: show embed
test_post_form.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'net/http'
 
uri = URI.parse 'http://x.search.yahoo.co.jp/search'
r = Net::HTTP.post_form uri, :p => 'ruby'
p r
 
# ruby 1.8.6 (2007-09-24 patchlevel 111)
#<Net::HTTPOK 200 OK readbody=true>
 
# ruby 1.9.1p243 (2009-07-16 revision 24175)
# http.rb:1530:in `dup': can't dup Symbol (TypeError)