I have a FormUrlEncodedContent
how can i extract data from it
public void sample(FormUrlEncodedContent request, string url)
{
Console.Writeline(url);
Console.Writeline(request);
}
This returns System.Net.Http.FormUrlEncodedContent
Consulting the documentation shows a variety of operations available on that object. For example, if you just want to read it as a string, you can use ReadAsStringAsync
:
public async Task sample(FormUrlEncodedContent request, string url)
{
Console.Writeline(url);
Console.Writeline(await request.ReadAsStringAsync());
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.