*Here are request headers: I have deleted the value of authorization for
security reasons.*

Connection: close
Authorization: NTLM {Deleted the value here}
Accept-Language: en-US,en;q=0.5
Host: corportaluat.corp.xxxxxx.com
Upgrade-Insecure-Requests: 1
Accept-Encoding: gzip, deflate, br
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0)
Gecko/20100101 Firefox/68.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

*Here are response headers:*

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""
http://www.w3.org/TR/html4/strict.dtd";>
<HTML><HEAD><TITLE>Not Authorized</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html;
charset=us-ascii"></HEAD>
<BODY><h2>Not Authorized</h2>
<hr><p>HTTP Error 401. The requested resource requires user
authentication.</p>
</BODY></HTML>

I am giving valid credentials and still it says, not authorized.


On Wed, Sep 9, 2020 at 9:50 AM Felix Schumacher <
felix.schumac...@internetallee.de> wrote:

>
> Am 09.09.20 um 14:58 schrieb SAS:
> > I am not creating manual HTTP requests to add authentication manually.
> >
> > The issue I am facing is happening during the recording process.
> shouldn't
> > the tool automatically detect the authentication and pass through this
> > step?
>
> JMeter acts as a proxy and doesn't care about the authentication
> mechanism of the website you are using.
>
> To help you here, we probably need more information on the headers, that
> your client sends and that the webserver is replying with. If you
> started your test plan (and the proxy) from the template "Recording with
> think time" (which I recommend), than you will find all the requests in
> the View Results Tree element under the HTTP(s) Test Script Recorder.
>
> Have a look at the headers and if you can, show them to us. Most
> interesting will be the headers that are named Authorization and
> WWW-Authenticate.
>
> Note, that the value of the Authorization header includes your
> credentials, so replace them with something safe.
>
> Also note, that JMeter will not extract your credentials from the
> headers. You have to insert those into the test plan by hand after the
> recording has finished. But I understood that this is not your problem.
>
> Felix
>
> >
> > Thanks,
> > Sastry
> >
> > On Wed, Sep 9, 2020 at 1:06 AM Amit Dhumal <amitdhumal...@gmail.com>
> wrote:
> >
> >> Please verify the type of authentication in HTTP request header. In
> case of
> >> NTLM authentication please follow steps as per:
> >> https://www.blazemeter.com/blog/windows-authentication-apache-jmeter
> >>
> >> On Wed, Sep 9, 2020 at 9:18 AM SAS <sastry...@gmail.com> wrote:
> >>
> >>>> Hi,
> >>>>
> >>>> I am trying to record the script using JMeter for a web application
> >> that
> >>>> has windows authentication enabled.  I have setup a proxy in Firefox
> >> for
> >>>> recording purposes.
> >>>>
> >>>> However, when I tried recording the script, "Authentication required"
> >>>> message kept popping up even after I provided valid credentials.  If I
> >>> hit
> >>>> cancel on the popup message, I see the "401 Unauthorized" message.
> >>>>
> >>>> Please note, it happens only during recording.  I am able to
> >> successfully
> >>>> login to the website when I was not recording.
> >>>>
> >>>> Please let me know how we can resolve this-
> >>>>
> >>>>
> >>>> Thanks
> >>>> SASTRY
> >>>>
> >>
> >> --
> >> Thanks & Regards,
> >> Amit Dhumal
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>

-- 


Thanks
SASTRY

Reply via email to