module Ethon::Easy::Http::Postable

def set_form(easy)

Parameters:
  • easy (Easy) -- The easy to setup.

Other tags:
    Example: Setup. -
def set_form(easy)
  easy.url ||= url
  if form.multipart?
    form.escape = false
    form.materialize
    easy.httppost = form.first.read_pointer
  else
    form.escape = true
    easy.postfieldsize = form.to_s.bytesize
    easy.copypostfields = form.to_s
  end
end