오류 코드 401
또는 500
이 반환됩니다. 누군가 내가 잘못 가고있는 곳에서 나를 도울 수 있습니까?CppRestSDK https 요청이 작동하지 않습니다.
http_client client(L"https://oxford-speech.cloudapp.net/token/issueToken/");
uri_builder query;
query.append_query(L"grant_type", L"client_credentials");
query.append_query(L"client_id", L"test-app");
query.append_query(L"client_secret", L"<client secret goes here>");
query.append_query(L"scope", L"https://speech.platform.bing.com");
query.append_query(L"content_type", L"application/x-www-form-urlencoded");
http_request msg(methods::POST);
msg.headers().set_content_type(L"application/x-www-form-urlencoded");
msg.set_request_uri(query.to_string());
std::wstring str = msg.to_string();
return client.request(msg);
고객 비밀번호를 삭제했으며이를 다시 생성 할 수 있습니다. –
감사합니다. 같은 쿼리가 다른 JS 임상에서 작동하지만 이유를 얻지 못했습니다! – ryadav