I think I now understand what you were getting at.

When you record a session via the Proxy Server, JMeter creates a test
plan which contains a record of the browser requests.

In the case of pages requiring browser authorisation, this means that
there will be two entries in the generated test plan. The first one is
when the server returns a 401, the second is when the browser repeats
the request with the authorisation attached.

For subsequent pages in the same domain, the browser knows it needs to
send the Authorization header, so the server does not send a 401.

So once you have recorded a test plan, the initial request should be
deleted, otherwise it will fail on replay.

Also, if you select "Capture HTTP Headers", the current version of
JMeter saves all the headers it sees (apart from cookies). This means
that Authorization headers are saved in the test plan.

These may continue to work, but will interfere with any Authorisation
Manager settings - for example if you later want to login as a
different user.

So they should probably also be removed and replaced by a suitable
entry in the Auth Manager. However, note that only the HttpClient
sampler currently supports MD5 digest auth.

On 27/09/2007, puneet jagtiani <[EMAIL PROTECTED]> wrote:
> Thx sebb for the brief solution of my problem . can you explain me in detail 
> as I am new to Jmeter. If you want i can send you test plan
>
> sebb <[EMAIL PROTECTED]> wrote: Make sure you don't have any "Authorization" 
> headers in the test plan;
> these will likely only work once.
>
> The standard HTTP sampler only works with Basic authentication at present.
>
>
> On 26/09/2007, sebb  wrote:
> > Works fine for me with the default settings.
> >
> > On 26/09/2007, puneet jagtiani
>  wrote:
> > > I try all methods.
> > >
> > > sebb  wrote: Try changing
> > >
> > > http.authentication.preemptive
> > >
> > >
> > > On 25/09/2007, puneet jagtiani
> > >  wrote:
> > > >
> > > > Version 2.3RC4
> > > > I am using HTTP client sampler
> > > >
> > > > sebb  wrote: It would help to know which version of
> > > > JMeter and Java you are using.
> > > >
> > > > Also, are you using HTTP HttpClient Sampler or the default Java one?
> > > >
> > > >
> > > > On 25/09/2007, puneet jagtiani
> > > > wrote:
> > > > >
> > > > > Urgent
> > > > >
> > > > > Hi,
> > > > >
> > > > > I am having problem in using jmeter for application which is using MD5
> > > > > authentication. any one aware of using MD5 authentication.
> > > > >
> > > > > Request 1
> > > > >
> > > > > GET Server/pagedisplay.do?pub=bor
> > > > >
> > > > > [no cookies]
> > > > >
> > > > > Request Headers:
> > > > > Host: Server
> > > > > Accept-Language: en-us
> > > > > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
> > > > > .NET
> > > > > CLR 1.1.4322; .NET CLR 2.0.50727)
> > > > > Cookie: BIGipServerbookstore_10.254.243.61_80=1089732106.20480.0000
> > > > > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> > > > > application/x-shockwave-flash, application/vnd.ms-excel,
> > > > > application/vnd.ms-powerpoint, application/msword, */*
> > > > >
> > > > > Response of Request 1
> > > > >
> > > > > HTTP response headers:
> > > > > HTTP/1.1 401 Authorization Required
> > > > > Date: Tue, 25 Sep 2007 05:11:16 GMT
> > > > > Server: Apache
> > > > > WWW-Authenticate: Digest realm="realm",
> > > > > nonce="ZKFAxO46BAA=6771f0ede4e1b7f8944575fa7d0695190cc604bd",
> > > > algorithm=MD5,
> > > > > domain="/ http://server/";, qop="auth"
> > > > > Vary: Accept-Encoding
> > > > > Content-Length: 401
> > > > > Keep-Alive: timeout=4, max=99
> > > > > Connection: Keep-Alive
> > > > > Content-Type: text/html; charset=iso-8859-1
> > > > >
> > > > > Request 2
> > > > >
> > > > > GET Server/pagedisplay.do?pub=bor
> > > > >
> > > > > [no cookies]
> > > > >
> > > > > Request Headers:
> > > > > Authorization: Digest username="admin", realm="realm", qop="auth",
> > > > > algorithm="MD5", uri="/BookStore/pagedisplay.do",
> > > > > nonce="ZKFAxO46BAA=6771f0ede4e1b7f8944575fa7d0695190cc604bd",
> > > > nc=00000001,
> > > > > cnonce="c8bb506b9e009888b80c3501fac26142",
> > > > > response="1e5e62f9e7c31a703c7ea87e8697cd7a"
> > > > > Host: server
> > > > > Accept-Language: en-us
> > > > > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
> > > > > .NET
> > > > > CLR 1.1.4322; .NET CLR 2.0.50727)
> > > > > Cookie: BIGipServerbookstore_10.254.243.61_80=1089732106.20480.0000
> > > > > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> > > > > application/x-shockwave-flash, application/vnd.ms-excel,
> > > > > application/vnd.ms-powerpoint, application/msword, */*
> > > > >
> > > > > Response of Request 2
> > > > >
> > > > > HTTP response headers:
> > > > > HTTP/1.1 200 OK
> > > > > Date: Tue, 25 Sep 2007 05:11:17 GMT
> > > > > Server: Apache
> > > > > Authentication-Info: rspauth="49a7f7e7c79d2fd8d83ae5842527c132",
> > > > > nextnonce="AA9UxO46BAA=5223a6ee6668f9bacbe64c226d9858baba10d213",
> > > > > cnonce="c8bb506b9e009888b80c3501fac26142", nc=00000001, qop=auth
> > > > > X-Powered-By: MPS Tech. WS
> > > > > Set-Cookie: JSESSIONID=53DDE066F8C6A61A20FBD62F05BD0E13.node1; Path=/
> > > > > Pragma: No-cache
> > > > > Cache-Control: no-store
> > > > > Expires: Thu, 01 Jan 1970 00:00:00 GMT
> > > > > Set-Cookie: ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE_BOR=null;
> > > > > Expires=Thu, 01-Jan-1970 00:00:10 GMT
> > > > > Set-Cookie: JSESSIONID=DE61FC350B16BE48BAB8DB184A097453.node1; Path=/
> > > > > Vary: User-Agent,Accept-Encoding
> > > > > Keep-Alive: timeout=4, max=98
> > > > > Connection: Keep-Alive
> > > > > Content-Type: text/html;charset=UTF-8
> > > >
> > > >
> > > >
> > > >
> > > > When i m running the recorded script , it is failing showing HTTP 401
> > > > error
> > > >
> > > >
> > > >
> > > > > I Don't Know how to resolve this issue. I got some hint about HTTP
> > > > > authorization manager . but it doesn't work for this problem
> > > >
> > > >
> > > > You definitely need an HTTP Authorization Manager, since the server sent
> > > > a WWW-Authenticate header.
> > > >
> > > > You may need to experiment with changing
> > > >
> > > > http.authentication.preemptive
> > > >
> > > > if using the HttpClient sampler
> > > >
> > > >
> > > > NOTE: Server and host name is changed to a dummy value because it is
> > > > > confidential
> > > > >
> > > > > Thanks,
> > > > > Puneet
> > > > >
> > > > >
> > > > > ---------------------------------
> > > > > Unlimited freedom, unlimited storage. Get it now
> > > >
> > > >
> > > >
> > > >
> > > > ---------------------------------
> > > > Chat on a cool, new interface. No download required. Click here.
> > >
> > >
> > >
> > >
> > > ---------------------------------
> > >  Why delete messages? Unlimited storage is just a click away.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------
>  Chat on a cool, new interface. No download required. Click here.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to