rotatorkuf
rotatorkuf
CC#
Created by rotatorkuf on 1/4/2023 in #help
❔ convert webclient code to httpclient code
using var webClient = new WebClient(); webClient.Headers.Add("Content-Type", "application/zip"); webClient.Headers.Add("x-ms-blob-type", "BlockBlob"); webClient.Headers.Add("Overwrite", "T"); webClient.UploadFile(azureWriteUrl, WebRequestMethods.Http.Put, filePath);
3 replies