method
xml_http_request
v1.1.6 -
Show latest stable
- Class:
ActionController::Integration::Session
xml_http_request(path, parameters=nil, headers=nil)public
Performs an XMLHttpRequest request with the given parameters, mimicing the request environment created by the Prototype library. The parameters may be nil, a Hash, or a string that is appropriately encoded (application/x-www-form-urlencoded or multipart/form-data). The headers should be a hash. The keys will automatically be upcased, with the prefix ‘HTTP_’ added if needed.