Hi try to manually follow the redirects (i.e. dont check the follow redirects or redirect automatically - it's possible to write a generic loop that checks the status and redirects if the status is any 3xx). Add a View Results Tree and check that the Auth headers were added - note that if you are going to a different domain /url (The base domain value) the auth headers might not get added. Incidentally are you using follow redirects or redirect automatically?
regards deepak On Mon, Aug 10, 2015 at 4:41 AM, Nitin Rastogi <[email protected]> wrote: > Thanks Sebb.. > > I tried this as well now, but same results. > > Regards, > Nitin Rastogi > > On Mon, Aug 10, 2015 at 4:22 PM, sebb <[email protected]> wrote: > > > On 10 August 2015 at 11:03, Nitin Rastogi <[email protected]> wrote: > > > Hi, > > > > > > I am trying to test a Rest API with Basic Authentication enabled but > > > something weird is happening. > > > > > > When I try to fire a GET request, I am getting authentication error > > whereas > > > with POST request its working fine. This GET Request is basic ping > check > > > for the API and have few url redirections. > > > > > > I have tried testing with HTTPClient4, HTTPClient3.1 options as well. > > > > > > Jmeter Test Plan Structure is: > > > > > > - Thread Group > > > - HTTP Authorization Manager > > > - HTTP Request (GET) > > > - HTTP Request (POST) > > > - View Result Tree > > > > > > Can anyone please provide some insight? > > > > If auth uses cookies, then you need to add a Cookie Manager. > > > > > Thanks.. > > > Nitin Rastogi > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > >
