I am developing Windows 8 app. Error message "The type or namespace name 'Post' does not exist in the namespace 'System.Net.Http' (are you missing an assembly reference?)" is coming in Visual Studio 2012 when I try to execute the code
byte[] response = System.Net.Http.Post
(
url: "someurl",
contentType: "application/json",
contentLength: 32,
content: "pqpUserName=admin&password=test@123"
);
The code is from the URL .NET: Simplest way to send POST with data and read response
. Any help is appreciated.