konto usunięte
Temat: Dekodowanie stringa z parametrami jak URL
Mam stringa mniej wiecej takiego:type=1¶m1=something&something2¶m2=something3+something4
Chce go sparsowac na takie parametry:
type = 1
param1 = something&something2
param2 = something3+something4
potraktowalem go standardowo:
string input = "type=1¶m1=something&something2¶m2=something3+something4";
input = HttpUtility.HtmlDecode(input);
WL(input);
HttpRequest req = new HttpRequest(string.Empty, "http://localhost", input);
foreach(string key in req.Params.AllKeys)
WL(key + " = " + req.Params[key]);
No i niestety dostalem to:
type=1¶m1=something&something2¶m2=something3+something4
type = 1
param1 = something
= something2
param2 = something3 something4
Co robie zle?