Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 19693 invoked from network); 25 Aug 2006 14:16:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Aug 2006 14:16:49 -0000 Received: (qmail 97208 invoked by uid 500); 25 Aug 2006 14:16:47 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 97179 invoked by uid 500); 25 Aug 2006 14:16:47 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 97168 invoked by uid 99); 25 Aug 2006 14:16:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 07:16:47 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sebbaz@gmail.com designates 64.233.166.178 as permitted sender) Received: from [64.233.166.178] (HELO py-out-1112.google.com) (64.233.166.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 07:16:46 -0700 Received: by py-out-1112.google.com with SMTP id d80so1213493pyd for ; Fri, 25 Aug 2006 07:16:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bUpJO9m2QW35LAl4Y2K8b3ozT1dhWfMmbkhTKoW2gbU8Q8k7SK2I8ZCb5Po0qymMFBqrps45WIlaJPnjmIeyLTjihy2nM/NwSEiKtCjKR5Vz8m0AXvUeu+ZuDGLqveRBEF1U9y072dnkj4CY9QwrWgipvUhNLwMkji7V1HJWKJw= Received: by 10.35.20.14 with SMTP id x14mr5197844pyi; Fri, 25 Aug 2006 07:16:25 -0700 (PDT) Received: by 10.35.28.20 with HTTP; Fri, 25 Aug 2006 07:16:25 -0700 (PDT) Message-ID: <25aac9fc0608250716v3ffc0b45tc085a62363c1ae7f@mail.gmail.com> Date: Fri, 25 Aug 2006 15:16:25 +0100 From: sebb To: "JMeter Users List" Subject: Re: Unable to get out through authenticated proxy In-Reply-To: <7A241B0DC860414DA0F0D46B646ED85893994D@pscbanpexch01.perotsystems.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7A241B0DC860414DA0F0D46B646ED85893994D@pscbanpexch01.perotsystems.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I think you are right - there is code to handle a proxy, but no entry in the GUI to set the properties... However, if the values are not set, it seems that it looks at the system properties: http.proxyHost http.proxyPort Try these - the -D flag can be used, or the system.properties file. Looks like a bug should be raised; the sampler should probably behave like the Apache HttpClient version, which supports command-line proxy definitions and proxy exclusions via jmeter.properties. I can't see the point of defining the proxy on the GUI, so that code could probably be removed... On 25/08/06, Sen, Kakoli wrote: > Hi Sebb/Peter, > With 2.2 WebService(SOAP), I am also facing problem with external web-service where we have to go though the HTTP proxy. I too believe it doesn't take proxy credentials from command-line. And the GUI does not give any way to specify them. Is there a bug raised on this? > > Regards, > Kakoli > > > -----Original Message----- > From: Karr, David [mailto:david.karr@wamu.net] > Sent: Friday, August 25, 2006 7:17 AM > To: JMeter Users List > Subject: RE: Unable to get out through authenticated proxy > > > The WebService(SOAP) choice doesn't work either, for a different reason. > Apparently that doesn't use the command-line arguments for the proxy > configuration, it uses the parameters specified in the sampler itself. > That's fine, but there's no proxyuser or proxypassword fields. When I > run it, it just gets back a proxy auth required header. > > > -----Original Message----- > > From: sebb [mailto:sebbaz@gmail.com] > > Sent: Thursday, August 24, 2006 7:30 AM > > To: JMeter Users List > > Subject: Re: Unable to get out through authenticated proxy > > > > I though the WSDL was only used to populate the other fields? > > > > Can't one just populate them directly? > > > > On 24/08/06, Karr, David wrote: > > > I'm seeing the problem with both the SOAP/XML-RPC Request and > > > HTTPClient request. I don't have a WSDL, so I can't use the > > > WebService(SOAP) request. > > > > > > > -----Original Message----- > > > > From: Sen, Kakoli [mailto:Kakoli.Sen@ps.net] > > > > Sent: Wednesday, August 23, 2006 10:14 PM > > > > To: JMeter Users List > > > > Subject: RE: Unable to get out through authenticated proxy > > > > > > > > Hi, > > > > Is it through the 'SOAP/XML-RPC Request' or 'WebService(SOAP)' > > > > Request? > > > > So in 2.2, these requests cannot pierce authenticated proxy? > > > > > > > > Regards, > > > > Kakoli > > > > > > > > -----Original Message----- > > > > From: Karr, David [mailto:david.karr@wamu.net] > > > > Sent: Wednesday, August 23, 2006 2:59 AM > > > > To: JMeter Users List > > > > Subject: Unable to get out through authenticated proxy > > > > > > > > > > > > I've been making progress on testing the service that runs on my > > > > localhost, but I'm also trying to test an external > > service, through > > > > our authenticated proxy. > > > > > > > > I found that the request wasn't going anywhere. I > > monitored it with > > > > etheral, and it never tried to hit the proxy or the > > downstream host. > > > > I turned on all the debug levels, but the log file didn't show me > > > > anything meaningful. > > > > > > > > I finally thought to add a "Save results to file" > > > > postprocessor. When I inspected the file, I found this: > > > > > > > > java.lang.IllegalArgumentException: Host may not be null > > > > at > > > > org.apache.commons.httpclient.NTCredentials.(NTCredentia > > > > ls.java:83 > > > > ) > > > > at > > > > org.apache.jmeter.protocol.http.sampler.HTTPSampler2.setupConn > > > > ection(HTT > > > > PSampler2.java:274) > > > > at > > > > org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HT > > > > TPSampler2 > > > > .java:518) > > > > at > > > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample > > > > (HTTPSampl > > > > erBase.java:658) > > > > at > > > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample > > > > (HTTPSampl > > > > erBase.java:647) > > > > at > > > > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) > > > > at java.lang.Thread.run(Thread.java:534) > > > > > > > > I looked at the code for HTTPSampler2, and it has this code: > > > > > > > > ------------ > > > > if (PROXY_USER.length() > 0){ > > > > httpClient.getState().setProxyCredentials( > > > > new > > > > AuthScope(PROXY_HOST,PROXY_PORT,null,AuthScope.ANY_SCHEME), > > > > // NT Includes other types of Credentials > > > > new NTCredentials( > > > > PROXY_USER, > > > > PROXY_PASS, > > > > null, // "thishost", > > > > "" // domain > > > > )); > > > > } > > > > ------------ > > > > > > > > I looked at the javadoc for NTCredentials, and it > > specifically says > > > > that the hostname cannot be null. > > > > > > > > > > -------------------------------------------------------------------- > > > > - To unsubscribe, e-mail: > > jmeter-user-unsubscribe@jakarta.apache.org > > > > For additional commands, e-mail: > > jmeter-user-help@jakarta.apache.org > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > - To unsubscribe, e-mail: > > jmeter-user-unsubscribe@jakarta.apache.org > > > > For additional commands, e-mail: > > jmeter-user-help@jakarta.apache.org > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org