-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Describe the bug
Hello,
When i am trying to call MakeRequest from HttpClient, its showing the error like,
error C2027: use of undefined type 'Aws::Http::HttpClient'
note: see declaration of 'Aws::Http::HttpClient'
error C2039: 'MakeRequest': is not a member of 'std::shared_ptrAws::Http::HttpClient'
Here is the code i am using
std::shared_ptrAws::Http::HttpClient myclient = Aws::Http::CreateHttpClient(clientConfig);
Aws::Http::URI url("some path);
std::shared_ptrAws::Http::HttpRequest req(Aws::Http::CreateHttpRequest(url, Aws::Http::HttpMethod::HTTP_POST, Aws::Utils::Stream::DefaultResponseStreamFactoryMethod));
std::shared_ptrAws::IOStream body = Aws::MakeSharedAws::StringStream(extParam.c_str());
req->AddContentBody(body);
std::shared_ptrAws::Http::HttpResponse res = myclient->MakeRequest(*req); // getting error here
Aws::Http::HttpResponseCode resCode = res->GetResponseCode();
Is there any other way to send request to retrieve the results ?
Regards,
Gopinath.
Expected Behavior
compile
Current Behavior
showing error
Reproduction Steps
no special steps
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.6.2
Compiler and Version used
visual studio 2015
Operating System and version
windows 10