[Webtest] CGI variables in WebTest

Jon Gunnip webtest@lists.canoo.com
Sat, 20 Mar 2004 10:56:14 -0700


Marc,

Thanks for the reply.  It looks like I should look into whether or not
httpunit can be configured or extended to include the Referrer on get's.
 I have temporarily disabled the referrer check in my development
environment as a temporary fix.

I believe most browsers do pass the Referrer in the sequence I outlined.
 For about a year in production, we have had a central login system that
relies on browsers working this way, and we have had no complaints about
it not working.

Thanks again,
Jon



>>> mguillemot@yahoo.fr 03/20/04 9:51 AM >>>
Hi Jon,

It seems to me that it is an httpunit issue.
Concerning the sequence: are you sure that the browsers of your visitors
will really send the Referrer header? I can 
imagine that some browsers can be configured to disable sending this
information for privacy reasons.

Marc.

Jon Gunnip wrote:
> Hello,
> 
> I'm wondering if there is a way to get WebTest to set CGI variables
> like HTTP_REFERRER when doing a GET?
> 
> Looking at my webserver log, it will only set HTTP_REFERRER when it
> does a post.  Browsers will set HTTP_REFERRER when doing a get.
> 
> This is my sequence:
> POST of Login form leads to client-side redirect (GET) to User home
> page.  The user home page checks HTTP_REFERRER to make sure the user
> came from our login site.  Since WebTest's HTTP_REFERRER is blank, the
> redirect fails and the user is sent back to the login page.
> 
> Thanks,
> Jon
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 


_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest