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.

Problems accessing intranet sites when external proxy is enabled

vijaygubbalavijaygubbala Members
edited March 2010 in Sahi - Open Source
my office settings use proxy server for accessing internet and when i am using sahi with out setting external proxy settings i am unable to record. so i enabled external proxy settings and when i access internet sites after opening sahi, it works fine but intranet sites are not getting opened. It says unable to find IP address for the hostname. can anyone help me pls in this .....

Comments

  • narayannarayan Administrators
    Open sahi.properties and add configure

    ext.http.both.proxy.bypass_hosts

    such that it matches your local sites pattern.

    Restart Sahi and it should work.
  • hi narayan,
    Tried setting the ext.http.both.proxy.bypass_hosts property but didnt work for me. actually i am using older version of sahi that is downlaoded around 2 years back. i dont think this property was included at that time. i set the property as ext.http.both.proxy.bypass_hosts=*.mycompany.com. is this correct or is there any work around
  • I have a similar problem and tried the below entry in sahi.properties

    # There is only one bypass list for both secure and insecure.
    ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.mycompany.com

    But it did not work.
  • narayannarayan Administrators
    Hi vijaygubbala,

    You will have to use the newer version of Sahi for this to work.

    Regards,
    Narayan
  • narayannarayan Administrators
    Hi Manickam,

    Could you please elaborate your problem and specify what happened when you say "But it did not work"?

    Regards,
    Narayan
  • Whenever I tried to hit our url for testing, I got only white screen with null pointer exception on the sahi console. I thought using local proxy is blocked by our company proxy while trying intranet sites.

    WARNING: java.lang.StringIndexOutOfBoundsException: String index out of range: -9
    at java.lang.String.substring(Unknown Source)
    at net.sf.sahi.response.HttpResponse.status(HttpResponse.java:66)
    at net.sf.sahi.response.HttpModifiedResponse.<init>(HttpModifiedResponse.java:47)
    at net.sf.sahi.RemoteRequestProcessor.addFilters(RemoteRequestProcessor.java:207)
    at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:190)
    at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:81)
    at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:142)
    at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:93)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    Then I tried adding another entry in ext.http.both.proxy.bypass_hosts, but i got the same error.
Sign In or Register to comment.