We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a session with an interceptor to a cpr::MultiPerform does not print out any information to the command line.
cpr::Response LoggingInterceptor::intercept(cpr::Session& session) { // Log the request URL std::cout << "Request url: " << session.GetFullRequestUrl() << '\n'; // Proceed the request and save the response cpr::Response response = proceed(session); // Log response status code std::cout << "Response status code: " << response.status_code << '\n'; // Return the stored response return response; } int main() { cpr::MultiPerform multiPerform; std::shared_ptr<cpr::Session> session = std::make_shared<cpr::Session>(); session->SetUrl("duckduckgo.com"); session->AddInterceptor(std::make_shared<LoggingInterceptor>()); multiPerform1.AddSession(session); std::vector<cpr::Response> responses = multiPerform.Get(); }
No response
GitHub (branch e.g. master)
1986262ba4e0cb052161e9e7919aef5ef08217f0
The text was updated successfully, but these errors were encountered:
Thank you very much for reporting this! This is an oversight from our side.
I created a PR (#863) with a fix for it. Could you please try, if it fulfils your needs?
Sorry, something went wrong.
It solves my issue. You can merge the PR.
Successfully merging a pull request may close this issue.
Description
Adding a session with an interceptor to a cpr::MultiPerform does not print out any information to the command line.
Example/How to Reproduce
Possible Fix
No response
Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment
1986262ba4e0cb052161e9e7919aef5ef08217f0
The text was updated successfully, but these errors were encountered: