c# - Extract content data from HttpCllient's FormUrlEncodedContent -
my content is:
var content = new dictionary<string, string> { {"pickup_date", pickupdate.tostring("dd.mm.yyyy hh:mm")}, {"to_city", "victoria"}, {"delivery_company", "4"}, {"shop_refnum", parameters.reference}, {"dimension_side1", "20"}, {"dimension_side2", "20"}, {"dimension_side3", "20"}, {"weight", "5"} }; var httpcontent = new formurlencodedcontent(content);
how can extract content httpcontent?
i found readasformdataasync() method in system.net.http.formatting:
namevaluecollection hcdata = await httpcontent.readasformdataasync(cancellationtoken);
Comments
Post a Comment