How To Use C++ HttpClient in Metro Apps?


  • Hello....

    I need to use GET and POST  method to HTTP.

    And MSDN don't have c++ sample about HttpClient Class.

    My Code


    #using <System.Net.Http.dll>
    using namespace System::Net::Http;
    public ref class BlankPage sealed
    	HttpClient^ httpClient;


    httpClient = ref new HttpClient();

    Will have "error C3624: 'System::Object': use of this type requires a reference to assembly 'mscorlib'"

    This error.....i don't know how to HttpClient this class

    Anyone have solution?

    Thanks a lot

    Tuesday, June 5, 2012 3:05 AM


All replies