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.
Sahi and HTTP_REFERER on IE
Hi,
I am relatively new to Sahi. I am facing problem while playing back scripts using IE on an ASP page where the ASP uses the following statement
referer = Request.ServerVariables["HTTP_REFERER"].Trim().ToLower();
The error says that 'Request.ServerVariables["HTTP_REFERER"]' returns null. And upon experimentation, I found that, on IE, while executing Sahi script, HTTP_REFERER is set to null where as HTTP_REFERER is set to the url while manually performing the action.
The same Sahi script works fine with Firefox
I am using Sahi V2 Release 2009-03-04.
I would greatly appreciate if any of you could direct me to any work-around or quick fix for this behavior
Thanks in advance
dp
I am relatively new to Sahi. I am facing problem while playing back scripts using IE on an ASP page where the ASP uses the following statement
referer = Request.ServerVariables["HTTP_REFERER"].Trim().ToLower();
The error says that 'Request.ServerVariables["HTTP_REFERER"]' returns null. And upon experimentation, I found that, on IE, while executing Sahi script, HTTP_REFERER is set to null where as HTTP_REFERER is set to the url while manually performing the action.
The same Sahi script works fine with Firefox
I am using Sahi V2 Release 2009-03-04.
I would greatly appreciate if any of you could direct me to any work-around or quick fix for this behavior
Thanks in advance
dp
Comments
I tried to click on the link from IE which points to the proxy and it works fine. But when the script is played back, it fails. This lead to my above conclusion. Hope this helps to arrive at a solution
dp
Regards,
Narayan