/// <summary> /// Helper function to do an HTTP PUT with an optional set of headers to set. /// </summary> /// <param name="url">URL to PUT request to</param> /// <param name="content"><see cref="RequestContent"/> to send to the server</param> /// <param name="bearerToken">Optional bearer token to pass to the request Auth header</param> /// <param name="additionalHeaders">Any additional headers to add to the request</param> /// <param name="skipServerCertificateValidation">If true, skips server certificate validation</param> /// <returns>The response for the request as a string</returns> public static string Put(string url, RequestContent content, string bearerToken = null, Dictionary <string, string> additionalHeaders = null, bool skipServerCertificateValidation = false) { return(PostPut("PUT", url, content, bearerToken, additionalHeaders, skipServerCertificateValidation)); }
/// <summary> /// Helper function to do an HTTP PUT with an optional set of headers to set. /// </summary> /// <param name="url">URL to PUT request to</param> /// <param name="content"><see cref="RequestContent"/> to send to the server</param> /// <param name="bearerToken">Optional bearer token to pass to the request Auth header</param> /// <param name="additionalHeaders">Any additional headers to add to the request</param> /// <returns>The response for the request as a string</returns> public static string Put(string url, RequestContent content, string bearerToken = null, Dictionary <string, string> additionalHeaders = null) { return(PostPut("PUT", url, content, bearerToken, additionalHeaders)); }