Arne Vajh?j wrote:
> Amir Michail wrote:
> > Is there an easy way to set arbitrary ips and referers on-the-fly as
[quoted text clipped - 8 lines]
>
> Arne
I would like to set up a convenient environment for development of a
web app that makes use of this information without actually having to
use different IPs to do the testing. While testing the application, I
would like to be able to change on-the-fly what
HttpServletRequest.getHeader(..) returns.
Amir
Arne Vajhøj - 23 Dec 2006 18:24 GMT
Amir Michail wrote:
>> Amir Michail wrote:
>>> Is there an easy way to set arbitrary ips and referers on-the-fly as
[quoted text clipped - 11 lines]
> would like to be able to change on-the-fly what
> HttpServletRequest.getHeader(..) returns.
Set the header in your client test code then.
URLConnection has a setRequestProperty method that can
do such things.
Whatever you are using on top of that for testing may
have equivalent capability.
Arne