18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
setFollowRedirects need be called before HttpURLConnection object
Hi,
I've meet a problem when server response 302 moved temporarily.
I use sahi 2011-07-19 with Java 1.6.0_23,
Windows XP, IE 8 and Firefox 7
If sahi receive 302 response, it will redirect automatically, rather then pass it to browser.
I've trace the code, the problem is in RemoteRequestProcessor.java:
Line 102 setFollowRedirects() is called after HttpURLConnection's construction at line 99
But accoding to this page: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4637447
HttpURLConnection will only read setFollowRedirects at construction.
So I move it before construction, ant it seems fixed.
I've meet a problem when server response 302 moved temporarily.
I use sahi 2011-07-19 with Java 1.6.0_23,
Windows XP, IE 8 and Firefox 7
If sahi receive 302 response, it will redirect automatically, rather then pass it to browser.
I've trace the code, the problem is in RemoteRequestProcessor.java:
Line 102 setFollowRedirects() is called after HttpURLConnection's construction at line 99
But accoding to this page: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4637447
HttpURLConnection will only read setFollowRedirects at construction.
So I move it before construction, ant it seems fixed.