开发者

Getting QueryStrings from WebRequest

开发者 https://www.devze.com 2023-02-04 08:47 出处:网络
Lets say i have this: WebRequest myWebRequest1 = (WebRequest)asynchrono开发者_开发技巧usResult.AsyncState;

Lets say i have this:

WebRequest myWebRequest1 = (WebRequest)asynchrono开发者_开发技巧usResult.AsyncState;

i know that i can get the url like this myWebRequest1.RequestUri but i was wondering if there is any way to get the query strings using a better way than manualy parsing it , i mean something like myWebRequest1.QueryString[etc etc ]

any ideas ?

thanks in advance....


Try extracting the request URI as a string and using: HttpUtility.ParseQueryString(String)

0

精彩评论

暂无评论...
验证码 换一张
取 消