Skip to content
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

httpclient-redirect-when-using-post-method #3

Closed
shibaevv opened this issue Sep 13, 2017 · 2 comments
Closed

httpclient-redirect-when-using-post-method #3

shibaevv opened this issue Sep 13, 2017 · 2 comments

Comments

@shibaevv
Copy link

In my app there are few http POST redirects, will it be possible to handle redirects with http client?

Here are few links I found:
httpclient-redirect-when-using-post-method
httpclient-redirect-on-http-post

For example in com/vlkan/hrrs/replayer/http/ApacheHttpRequestRecordReplayer.java

@Inject
public ApacheHttpRequestRecordReplayer(
        Config config,
        ApacheHttpClientFactory httpClientFactory,
        MetricRegistry metricRegistry,
        JtlPrinter jtlPrinter) {
    this.httpClient = httpClientFactory.create();
    **httpClient.setRedirectStrategy(new org.apache.http.impl.client.LaxRedirectStrategy());**
    LOGGER.debug("instantiated");
}
@vy
Copy link
Owner

vy commented Sep 13, 2017

Does 4a4d246 commit fix your problem? (There I added --redirectStrategy, -rs command line option to replayer.)

@shibaevv
Copy link
Author

Optional LAX strategy added, confirmed useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants