public async Task <byte[]> ZipBytesArray() { var parameters = new AuthDictionary() { { "folderid", FolderID.ToString() }, { "forcedownload", "1" } }; using (HtpClient localHttpClient = new HtpClient(new HCHandler())) { HttpRequestMessage HtpReqMessage = new HttpRequestMessage(HttpMethod.Post, new pUri("/getzip", parameters)); HtpReqMessage.Content = new FormUrlEncodedContent(parameters); return(await localHttpClient.GetByteArrayAsync(new pUri("/getzip", parameters)).ConfigureAwait(false)); } }