SP.PageRequest.post(body) Method

SharePoint 2010

Last modified: May 26, 2011

Applies to: SharePoint Foundation 2010

Sets "POST" web request.

SP.PageRequest.post(body);

body

Type: String

The HTTP body to assign to the web request.

This method sets the HTTP verb to "POST", sets the HTTP body with specified body parameter, registers the internal handler for the completed request event of the web request and executes the web request. The internal handler for the completed request calls the handler for the succeeded or failed event, depending upon the results of the request.

Show: