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.
proxy trouble
Hi,
I am working at an organisation that uses proxies with authentcation for all browser traffic (internal, external, the lot).
When trying to configure up Sahi and trying to reach google (http) (which works OK using normal browser settings), I get this far:
* certificate file is automatically generated by Sahi, in <sahi>/userdata/certs
* Sahi error page is displayed, after "continue to this web site (not recommended)" is chosen.
* The Sahi error page says:
/ ===========================
Sahi Error - Unexpected end of file from server
Sahi could not connect to the desired URL
bla-bla
Stack trace is:
java.net.SocketException: Unexpected end of file from server
...
========================/
/==============
The sahi0.log file says (I have removed proxy host name and token value):
09.jun.2010 15:40:56 net.sf.sahi.RemoteRequestProcessor processHttp
WARNING: Returning CannotConnectResponse for: (https)<my proxy>/auth/?cfru=<some token>
==============/
My setup is:
Windows Vista Service pack 1
Browser is: IE 8
- proxy settings in browser: http: localhost, port 9999; secure: localhost, port 9999
<sahi>/userdata/config/userdata.properties:
- ext.http settings enabled for both proxy and authentication,
- with my organisation's proxy host+port 80 and my credentials
- ext.https settings enabled the same way (port 443)
JAVA_HOME points to jdk folder (version 1.6.0.13)
JAVA_HOME\bin is added to PATH go get keytool.exe in path
Otherwise, Sahi is out of the box, no other propery files have been modified.
Has anybody any clues as to what I am doing wrong?
I am working at an organisation that uses proxies with authentcation for all browser traffic (internal, external, the lot).
When trying to configure up Sahi and trying to reach google (http) (which works OK using normal browser settings), I get this far:
* certificate file is automatically generated by Sahi, in <sahi>/userdata/certs
* Sahi error page is displayed, after "continue to this web site (not recommended)" is chosen.
* The Sahi error page says:
/ ===========================
Sahi Error - Unexpected end of file from server
Sahi could not connect to the desired URL
bla-bla
Stack trace is:
java.net.SocketException: Unexpected end of file from server
...
========================/
/==============
The sahi0.log file says (I have removed proxy host name and token value):
09.jun.2010 15:40:56 net.sf.sahi.RemoteRequestProcessor processHttp
WARNING: Returning CannotConnectResponse for: (https)<my proxy>/auth/?cfru=<some token>
==============/
My setup is:
Windows Vista Service pack 1
Browser is: IE 8
- proxy settings in browser: http: localhost, port 9999; secure: localhost, port 9999
<sahi>/userdata/config/userdata.properties:
- ext.http settings enabled for both proxy and authentication,
- with my organisation's proxy host+port 80 and my credentials
- ext.https settings enabled the same way (port 443)
JAVA_HOME points to jdk folder (version 1.6.0.13)
JAVA_HOME\bin is added to PATH go get keytool.exe in path
Otherwise, Sahi is out of the box, no other propery files have been modified.
Has anybody any clues as to what I am doing wrong?
Comments
Another thing is, it says, cannot connect to (https)<my proxy>/auth/?cfru=<some token>
Is the browser redirecting you to this page?
Regards,
Narayan
Not sure how to include the domain name in the sahi settings. I have tried out the following variations with no success:
* ext.http[and https].proxy.auth.name=domain\username
* =domain\\username
* =domain/username
* =username.domain.company.com
When presenting the error message, the browser has got the (https)<my proxy>/auth/?cfru=<some token> URL in the address line, so I guess it must have been redirected there. But in normal usage, it would of course end up displaying google with the google URL in the address line.
One more piece of information: the browser is normally not set up to use a proxy by specifying protocol and port number. It is set up to use an automatic configuration script (under LAN settings in IE) that returns a proxy. I don't know how to set up sahi to use that same config script, but I have set up sahi to use the proxy that is normally returned by the config script.
To access my application I have to use 'Use automatic Configuration scripts' and automatically detect settings'. But when I open sahi, it is overriding the settings. I changed userdata.properties file and tried. And I am facing the same issues. Could you please help me to resolve this issue.
Thank You!
Ability to use 'Use automatic Configuration scripts'(proxy.pac) is not available in Sahi OS. It is available in Sahi Pro v5.0 and onwards.
Regards.