postData() public method

post binary data to remote server
public postData ( string pUrl, string>.Dictionary pHeaders, byte pPostData, int offset, int count, string contentType, CompletionHandler pCompletionHandler ) : void
pUrl string
pHeaders string>.Dictionary
pPostData byte
offset int
count int
contentType string
pCompletionHandler CompletionHandler
return void
 public HttpResult batch(string ops)
 {
     HttpResult batchResult = null;
     string url = string.Format("{0}{1}", Config.RS_HOST, "/batch");
     string token = Auth.createManageToken(url, Encoding.UTF8.GetBytes(ops), this.mac);
     HttpManager httpManager = new HttpManager();
     httpManager.setAuthHeader(token);
     httpManager.CompletionHandler = new CompletionHandler(delegate(ResponseInfo respInfo, string response)
     {
         batchResult = new FetchResult();
         batchResult.Response = response;
         batchResult.ResponseInfo = respInfo;
     });
     PostArgs postArgs = new PostArgs();
     postArgs.Data = Encoding.UTF8.GetBytes(ops);
     httpManager.Headers.Set(HttpRequestHeader.ContentType, "application/x-www-form-urlencoded");
     httpManager.PostArgs = postArgs;
     httpManager.postData(url);
     return batchResult;
 }