BeardedManStudios.Network.HTTP.Post C# (CSharp) Method

Post() public method

Post a message to the URL with parameters
public Post ( Action callback, string>.Dictionary parameters ) : void
callback Action
parameters string>.Dictionary Message to post with parameters
return void
		public void Post(Action<object> callback, Dictionary<string, string> parameters)
		{
			string postString = string.Empty;

			if (parameters != null)
			{
				foreach (KeyValuePair<string, string> kv in parameters)
				{
					if (!string.IsNullOrEmpty(postString))
						postString += "&";

					postString = kv.Key + "=" + kv.Value;
				}
			}

			Post(callback, postString);
		}

Same methods

HTTP::Post ( Action callback, string postString ) : void