Quantcast

[ grinder-Bugs-3572843 ] HTTPS and follow redirects

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ grinder-Bugs-3572843 ] HTTPS and follow redirects

SourceForge.net
Bugs item #3572843, was opened at 2012-09-28 11:35
Message generated for change (Tracker Item Submitted) made by gboersma
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3572843&group_id=18598

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
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gerald Boersma (gboersma)
Assigned to: Nobody/Anonymous (nobody)
Summary: HTTPS and follow redirects

Initial Comment:
I have a test that uses SSL and the http plugin. I set the plugin to follow redirects as follows:

        control = HTTPPluginControl.getConnectionDefaults()
       control.setFollowRedirects(1)

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.


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3572843&group_id=18598

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Grinder-development mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-development
Loading...