jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From puneet jagtiani <puneetjagti...@yahoo.co.in>
Subject Re: Problem with MD5 authentication
Date Tue, 25 Sep 2007 11:33:05 GMT
Version 2.3RC4
I am using HTTP client sampler

sebb <sebbaz@gmail.com> 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.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message