Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 473 Bytes

http post in shoes

Use the download method, which can do HTTP in the background and uses platform-specific code to work much, much faster. by _why

help with http post in shoes

#------------------
Shoes.app do
  download "http://localhost:8080", :method => "POST",
           :body => "userName=user&password=11111" do |dl|
    para dl.response.body
  end
end