Kyle
Kyle

Reputation: 17687

ASP.Net equivalent of PHP's file_get_contents ( 'php://input' );

Is there an equivalent method for this in ASP.NET?

Upvotes: 10

Views: 9606

Answers (2)

rkusa
rkusa

Reputation: 4902

Just as simple as the PHP one: File.ReadAllText(path)

Upvotes: 1

Remus Rusanu
Remus Rusanu

Reputation: 294407

Is Request.InputStream not enough?

Upvotes: 9

Related Questions