Loading ...

C# .net equivilent of HTTP_RAW_POST_DATA? | CodeAsp.Net

C# .net equivilent of HTTP_RAW_POST_DATA?

0 (0votes)

Day before yesterday i was trying to mimic php code in c# asp.net.Basic problem in which i was stuck was not able to get what is  equivilent of HTTP_RAW_POST_DATA, after hours of search, and reading articles i found of this

You can access the values in C# like this 
byte[] data = Request.BinaryRead(Request.TotalBytes);


You can get the raw HTTP post data by accessing Request.InputStream. Read from the stream and write it into a file.
But using Binaryread easier Request.InputStream.The $_GET equivalent in asp.net is Request.QueryString.

Comments (no comments yet)

  • :*
  • :*
  • :

Top Posts