Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: HTTP Plugin
Submitted By: Gerald Boersma (gboersma)
Assigned to: Nobody/Anonymous (nobody)
Summary: HTTPS and follow redirects
I have a test that uses SSL and the http plugin. I set the plugin to follow redirects as follows:
control = HTTPPluginControl.getConnectionDefaults()
During the test, I perform a GET on a URL that starts as HTTP, but will redirect to HTTPS at some point. The test fails with a "peer not authenticated" error- i.e. certificate not found. This happens despite grinder using a TrustManager that trusts all certificates (./grinder-core/src/main/java/net/grinder/util/InsecureSSLContextFactory.java).
I worked around this one by turning off redirects before the GET, following the http redirects until I get to the https, and then turning redirects back on.
It would be better to have Grinder use the "InsecureSSLContextFactory" through the redirects.