Hi Guys -
Apologies if this is a fairly basic question...
I'm trying to use the HTTPSampler - that uses httpclient - I've
modified the code a bit to get NTLM authentication working.
The website I'm trying to access is of the form:
- login
- (obtain a cookie)
- do some other stuff
The problem I'm having is that each sampler seems to create a new
instance of the httpclient for every request - in the jmeter.log there
is a 'Thread started" for every http request - this is not what I want
(this in turn seems open a dedicated http connection - and so session
information is lost). Is there a way that I can prevent jmeter from
creating new instances of httpclient and httpconnection for every http
request?
Any help would be much appreciated.
PS - for anyone interested in getting NTLM authentication going, I've
changed the following (this is not the best way - because it always
assumes ntlm authentication, and the username / password is hardcoded
- but it's a start):
private void setConnectionAuthorization(
HttpMethod method,
URL u,
AuthManager authManager)
{
NTCredentials upc = new NTCredentials(<insert
username here>, <insert password here>,"localhost",<insert domain
here>);
httpState.setCredentials(null,null, upc );
}
==================================================================
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
|