简体   繁体   中英

POST data needs a time stamp - Web Requests

So I'm writing an application and sending a post request to authorize a facebook application. Most of the dynamic information in the post data I can find parsing the page, but a part of the post data has a time stamp, which changes, but I'm not sure how to get this value. This is what it looks like in the post data:

&locale=en_US&ttstamp=265817055695648116725765122&

How should I go about generating that number? Thanks.

I think you can simply use ParseQueryString , just like-

Uri url = new Uri("http://www.example.com?..&locale=en_US&ttstamp=265817055695648116725765122&..");
string param = HttpUtility.ParseQueryString(url.Query).Get("ttstamp");

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM