18 January 2026:


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 problem while navigating to our site using Sahi

Srinath_SahiSrinath_Sahi Members
edited February 2012 in Sahi - Open Source
I am no longer able to navigate to our site through Sahi, but it’s working fine when navigating to site normally (outside sahi).
We don't use external proxy for our site.

Either the remote server is down or not reachable
If the web site is not accessible even when the browser proxy configuration is removed, it means the server is down.
or


You need an external proxy to be configured.
If you normally require to use another proxy to connect to external websites, you need to configure Sahi to use that proxy.

You can configure the external proxy by editing
<sahi_root>/userdata/config/userdata.properties and setting these properties:


ext.http.proxy.enable=true
ext.http.proxy.host=external_proxy_server_hostname_or_ip
ext.http.proxy.port=external_proxy_server_port


If your proxy needs authorization, you should set these properties too.


ext.http.proxy.auth.enable=true
ext.http.proxy.auth.name=proxy_authorization_username
ext.http.proxy.auth.password=proxy_authorization_password


You should do the same with ext.https settings for https sites.

To bypass external proxy for some web addresses, like local addresses, set


ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.internaldomain.com

Comments

  • Hi,

    Can you please provide inputs how to use multiple proxy in userdata.properties file.

    For ex. To access test server i have to use host as 172.xxx.xxx.xxx and to access google or any other page i have to use another host like 172.yyy.yyy.yyy.
    Single host at a time is working fine. but i want to use both host name in userdata.properties file.

    Please help.

    Regards,
    mohit
Sign In or Register to comment.