def initialize(action_uri, method=nil, enctype=nil, accept_charset=nil, referer_uri=nil, orig_charset=nil)
@action_uri = action_uri
method ||= 'get'
@method = method.downcase
enctype ||= 'application/x-www-form-urlencoded'
@enctype = enctype.downcase
if accept_charset
@accept_charset = accept_charset.downcase.split(/\s+/)
elsif orig_charset
@accept_charset = [orig_charset]
else
@accept_charset = ['utf-8']
end
@accept_charset.map! {|charset| charset.downcase }
@controls = []
@referer_uri = referer_uri
@orig_charset = orig_charset
end