开发者

ServerVariables and POST Data

开发者 https://www.devze.com 2022-12-24 00:40 出处:网络
I\'ve got a piece of tracking code which is capturing REMOTE_HOST, SERVER, REQUEST_METHOD, SCRIPT_NAME and QUERY_STRING. It grabs these from ServerVariables and sticks them in a database by user and I

I've got a piece of tracking code which is capturing REMOTE_HOST, SERVER, REQUEST_METHOD, SCRIPT_NAME and QUERY_STRING. It grabs these from ServerVariables and sticks them in a database by user and IP.

What is the best way to pick up the exact contents of what was posted back to a URL in ASP.NET? Is there an HTTP_POST? I'd rath开发者_StackOverflower not grab something and then have to parse it.


If I understand you correctly, you are talking about something like the Request.Form collection.

It's a NameValueCollection object with all the POST-ed data.

Edit:

More information here: http://msdn.microsoft.com/en-us/library/ms525985.aspx

0

精彩评论

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