Re: why does not Grinder consider JVM httpp-proxy setting?
Philip Aston <[email protected]>
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <[email protected]> |
The Grinder uses a different HTTP library (HTTPClient -
http://www.innovation.ch/java/HTTPClient/), not the JDK's HttpUrlConnection.
Nevertheless, HTTPClient does respect the http.proxyHost settings.
You should trace the HTTP interaction with the server to find out what
the difference is between the two libraries (I would do this using
Wireshark). Since it is a 407, I wonder whether your JDK is somehow
configured to supply the proxy authentication details.
- Phil
On 05/03/14 13:49, Lutfur Rahaman wrote:
> I am using Grinder 3.11. I have tried with following Grinder option
> to access Internet based application through an HTTP Proxy server.
> But it gives HTTP 407 (Authorization Required) error.
>
> connectionDefaults.setProxyServer("proxy.mydomain.com", 8080)
>
>
>
> Can any one help me understand why Grinder does not consider any of
> the following settings to access Internet based application through an
> HTTP Proxy server.
>
> grinder.jvm.arguments = -Dhttp.proxyHost=172.18.18.12
> -Dhttp.proxyPort=8080
>
> or
>
> System.getProperties().put("http.proxyHost", "proxy.mydomain.com")
> System.getProperties().put("http.proxyPort", "8080")
>
>
> Whereas the following Java code works fine with no error and I am able
> to get status code as 200.
>
> URL url = new URL("http://www.apache.org/");
> System.setProperty("http.proxyHost", "proxy.mydomain.com");
> System.setProperty("http.proxyPort", "8080");
> HttpURLConnection urlConnection = (HttpURLConnection)
> url.openConnection();
>
>
>
> Best Regards
> Lutfur Rahaman
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use