Метод | Описание | |
---|---|---|
SendHttpRequest ( |
Sends an http request to the specified uri and returns the response as a byte array
|
|
SendODataJsonRequest ( |
Sends a JSON OData request appending SPO auth cookies to the request header.
|
|
SendODataJsonRequestWithCanary ( |
Sends a JSON OData request appending the SharePoint canary to the request header. Appending the canary to the request is necessary to perform write operations (e.g. create, update, delete list items) The canary is a security measure to prevent cross site scripting attacks
|
public static SendHttpRequest ( |
||
uri | The request uri | |
method | HttpMethod | The http method |
requestContent | Stream | A stream containing the request content |
contentType | string | The content type of the http request |
clientHandler | The request client handler | |
headers | string>.Dictionary | The http headers to append to the request |
Результат | Task |
public static SendODataJsonRequest ( |
||
uri | The request uri | |
method | HttpMethod | The http method |
requestContent | Stream | A stream containing the request content |
clientHandler | The request client handler | |
authUtility | An instance of the auth helper to perform authenticated calls to SPO | |
headers | string>.Dictionary | The http headers to append to the request |
Результат | Task |
public static SendODataJsonRequestWithCanary ( |
||
uri | The request uri | |
method | HttpMethod | The http method |
requestContent | Stream | A stream containing the request content |
clientHandler | The request client handler | |
authUtility | An instance of the auth helper to perform authenticated calls to SPO | |
_verbose | bool | |
Результат | Task |