Set Basic HTTP Authentication in Casablanca
I'm trying to modify the Casablanca tutorial to include basic HTTP authentication to access the Prosper API : auto fileStream = std::make_shared<ostream>(); // Open stream to output file. auto requestTask = fstream::open_ostream(U("results.html")).then([=](ostream outFile) { *fileStream = outFile; // Create http_client to send the request. http_client_config config; credentials creds( "username", "password" ); config.set_credentials( creds ); http_client client( U( "https://api.prosper.com/" ), config ); // Build request URI and start the request. uri_builder builder(U("/api/Listings/"));