You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Shmuel Krakower <sh...@gmail.com> on 2011/10/31 15:08:43 UTC

Proxy server exceptions

Hi All,
I am load testing an intranet web site which some of it's resources are
being hosted by external web site, meaning that if I check "get all
resources" for it and not setting a proxy server and port, it will fail to
get these specific resources.
When I set the proxy and proxy port at the sampler, the entire request
fails because the proxy is not familiar with intranet DNS.

There are two solutions for this:
1. To create separate requests to these external resources and configure
the proxy accordingly.
2. To set some URL/DNS exceptions for the proxy (like available under any
browser).

I believe that I see somewhere that this (second option) might be
configurable under the configuration file for the HTTP Sampler class but I
am not sure and cannot find it.

Appreciate any ideas.

Shmuel Krakower.

Re: Proxy server exceptions

Posted by Shmuel Krakower <sh...@gmail.com>.
Hi,
I've managed to find what I looked for.
In order to tell JMeter not to use the proxy configuration for specific
hosts add the following anywhere in the jmeter.properties file:
http.nonProxyHosts=Host.To.Be.Accessed.Directly

This works for both Java and HTTPClient Samplers.

Shmuel Krakower.

On Mon, Oct 31, 2011 at 4:08 PM, Shmuel Krakower <sh...@gmail.com> wrote:

> Hi All,
> I am load testing an intranet web site which some of it's resources are
> being hosted by external web site, meaning that if I check "get all
> resources" for it and not setting a proxy server and port, it will fail to
> get these specific resources.
> When I set the proxy and proxy port at the sampler, the entire request
> fails because the proxy is not familiar with intranet DNS.
>
> There are two solutions for this:
> 1. To create separate requests to these external resources and configure
> the proxy accordingly.
> 2. To set some URL/DNS exceptions for the proxy (like available under any
> browser).
>
> I believe that I see somewhere that this (second option) might be
> configurable under the configuration file for the HTTP Sampler class but I
> am not sure and cannot find it.
>
> Appreciate any ideas.
>
> Shmuel Krakower.
>