On 03/04/2008, Joshua Baudhuin <[EMAIL PROTECTED]> wrote:
> Hi, All.
>
>  New to JMeter (among other things).
>
>  I'm trying to test a website which has server authentication (i.e.,
>  invokes browser to pop up a messagebox requesting username/password
>  for domain/realm.
>
>  I had naively assumed that the proxy-recorder would capture this for
>  me, but it did not. No matter: I added an HTTP Authorization Manager
>  to the thread group for the test, and added an entry for the website.
>
>  However, when I run my test, and look at the results dumped to the
>  textfile by way of the aggregate reporter, it seems to indicate that
>  the authorization is not occurring (or not occurring properly).
>
>  E.g.:
>
>   <responseData class="java.lang.String">&lt;!DOCTYPE HTML PUBLIC
>  &quot;-//IETF//DTD HTML 2.0//EN&quot;&gt;
>  &lt;html&gt;&lt;head&gt;
>  &lt;title&gt;401 Authorization Required&lt;/title&gt;
>  &lt;/head&gt;&lt;body&gt;
>  &lt;h1&gt;Authorization Required&lt;/h1&gt;
>  &lt;p&gt;This server could not verify that you
>  are authorized to access the document
>  requested.  Either you supplied the wrong
>  credentials (e.g., bad password), or your
>  browser doesn&apos;t understand how to supply
>  the credentials required.&lt;/p&gt;
>  &lt;hr&gt;
>  &lt;address&gt;Apache/2.0.54 (Fedora) Server at www.xxx.com Port
>  80&lt;/address&gt;
>  &lt;/body&gt;&lt;/html&gt;
>  </responseData>
>
>  Any hints?
>
>  I should mention that the "domain" and "realm" fields of the
>  authorization manager entry are blank. I have tried filling them in,
>  but that didn't seem to help either.
>

It can be difficult getting the entries correct.
Domain and realm are not needed except for NTLM, which the Fedora
server is unlikely to use. If it does use NTLM, and it uses NTLMv2,
then I'm afraid it will never work.

The Base URL needs to match the target otherwise the credentials won't
be sent to the server - are you sure that is correct?

Try enabling debug for the Auth Manager - select the element and use
the Help Menu.
Run a short test and check the log - this may give a clue.

>  Thanks in advance.
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to