Automatically capture all values posted to a web service

  • Thread starter Thread starter Hardy Wang
  • Start date Start date
H

Hardy Wang

Hi,
I am wandering is it possible to capture all values posted (Http Post)
from a web site to a web service?
I would like to do something like following in web form:
HttpContext ctx = HttpContext.Current;
NameValueCollection forms = ctx.Request.Form;
for (int i = 0; i < forms.Count; i++) {
// get key name: forms.GetKey(i)
// get value: forms
}

Thanks!
 
Back
Top