Created
April 24, 2014 00:01
-
-
Save mouseroot/11236758 to your computer and use it in GitHub Desktop.
C# POSTDATA Parser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dictionary<string, string> postParams = new Dictionary<string, string>(); | |
postParams.Clear(); | |
string[] rawParams = rawData.Split('&'); | |
foreach (string param in rawParams) | |
{ | |
string[] kvPair = param.Split('='); | |
string key = kvPair[0]; | |
string value = HttpUtility.UrlDecode(kvPair[1]); | |
postParams.Add(key, value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment