Exemple #1
0
        public void PostAsync(string userName, string password, string uri, Dictionary <string, string> parameters)
        {
            PostRequestBuilder builder = new PostRequestBuilder();
            var request = builder.BuildRequest(userName, password, uri, parameters);

            //Don't bother waiting - if it is there, it is there
            Task.Factory.StartNew(() => ProcessRequest(request));
        }
Exemple #2
0
        public HttpWebResponse Post(string userName, string password, string uri, Dictionary <string, string> parameters)
        {
            PostRequestBuilder builder = new PostRequestBuilder();
            var request = builder.BuildRequest(userName, password, uri, parameters);

            //Wait for request to return before exiting
            return(ProcessRequest(request));
        }