-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
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
Is it possible to capture the HTTP reposone content #33
Comments
Hello @wwyhy, if you start the spoa-mirror program using the '-l' option, then you can see the responses of the mirror server in the log file, for example:
As far as the response content is concerned, it is ignored. If the program is compiled in debug mode (using --enable-debug when starting the configure script), then in that log you can find a more detailed display of the response from the mirror server.
|
Thanks for you reply. ====> As far as the response content is concerned, it is ignored. Thanks! |
Hello, to make this work, code must be added to the mir_curl_write_cb() function (which for the time being ignores all the content it receives from the mirror server). |
@zaga00 Thanks! One more issue here, we tested and found that it is working for text with POST method. Br, wwyhy |
Hello, I think that it is not suitable for streaming because spoa-mirror can send a request to the mirror url in just one step. Partial progress can be achieved by using the http-buffer-request option in the haproxy configuration, but the body of the http request must still be in one piece. |
The option is already enabled. I increased the max-frame-size of agent, it works now. |
Hi,
the traffic is mirrored and send to mirror-url by spoa agent.
is it possible to capture the HTTP reposone content (mirrior-url returned to spoa-agent)?
thanks!
The text was updated successfully, but these errors were encountered: