RestClient.Post method (1 of 3)
Sends a simple POST request.
public static Task<HttpResponseMessage> Post(Uri uri, IAuthentication? authentication)
| parameter |
description |
| uri |
target endpoint |
| authentication |
authentication |
Exceptions
| exception |
condition |
| ArgumentNullException |
|
See Also
RestClient.Post method (2 of 3)
Sends an entity via POST request.
public static Task<HttpResponseMessage> Post(Uri uri, object entity,
IAuthentication? authentication)
| parameter |
description |
| uri |
target endpoint |
| entity |
entity instance |
| authentication |
authentication |
Exceptions
| exception |
condition |
| ArgumentNullException |
|
See Also
RestClient.Post method (3 of 3)
Sends a media file with POST request
public static Task<HttpResponseMessage> Post(Uri uri, byte[] data, string fileName,
IEnumerable<KeyValuePair<string, string>>? keyValuePairs, IAuthentication? authentication)
| parameter |
description |
| uri |
target endpoint |
| data |
file contents |
| fileName |
file name |
| keyValuePairs |
key-value pairs, if needed |
| authentication |
authentication |
Exceptions
| exception |
condition |
| ArgumentNullException |
|
See Also