locked
How To Use C++ HttpClient in Metro Apps?

    Question

  • Hello....

    I need to use GET and POST  method to HTTP.

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

    My Code

    .h

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

    .cpp

    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 05, 2012 3:05 AM

Answers

All replies