I used to have a method in mvc application which can read the values from a post request. it was something like this.
[HttpPost]
public ActionResult ResponseFromExternalParty(FormCollection form)
and I was able to read the values as
var authCode = form["auth_code"];
now I need to do the same in another application which is not a mvc application, therefore I cannot use FormCollection object. I was told to use Stream object, so my new method looks like
public void ResponseFromExternalParty(Stream form)
I cannot get my head around it as how to read post data from this Stream object. if I have to read querystring data I know I could have used something like
HttpUtility.ParseQueryString();
advance thanks for any help.