[Webtest] CGI variables in WebTest
Marc Guillemot
webtest@lists.canoo.com
Sat, 20 Mar 2004 17:51:20 +0100
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
>