Problem with preemptive authentication

51 views
Skip to first unread message

dai...@gmail.com

unread,
Nov 22, 2013, 4:28:52 AM11/22/13
to performance-test...@googlegroups.com
Hi all,

I am having issues to make a request with preemptive authentication.

I am setting the user and password as in:

wlHttp.UserName = "userValue";
wlHttp.PassWord = "passValue";

But I still get a 401 before the credentials are sent to finally obtain the expected response.

Can you please help me with this?

Thanks and regards,

Daimiel

Thirumoorthy Chettiannan

unread,
Nov 22, 2013, 4:39:21 AM11/22/13
to performance-test...@googlegroups.com
Hi Daimiel,
There are 2 authentication methods supported apart from proxy authentication(total 3).

Try settings in 
To set authentication:
      1. Select Tools | Default/Current Session Options.
       2. Select the Authentication tab.

Try and let us know how it goes.

Thanks,
Thiru




--
--
You received this message because you are subscribed to the Google
Groups "Performance Testing using Webload" group.
To post to this group, send email to
performance-test...@googlegroups.com
To unsubscribe from this group, send email to
performance-testing-us...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/performance-testing-using-webload?hl=en
---
You received this message because you are subscribed to the Google Groups "Performance Testing using Webload" group.
To unsubscribe from this group and stop receiving emails from it, send an email to performance-testing-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
அன்புடன்,
திருமூர்த்தி செட்டியண்ணன்.

பன்னிரெண்டாம் வகுப்பில் இர‌ண்டாவ‌து முறையாக‌ தவறியவுடன்
"என்னுடன் திருப்பூருக்கு வந்துவிடு" என்றார் பெரியப்பா
"நிலத்தை விற்று வெளிநாட்டுக்கு அனுப்பலாம்" என்றார் மாமா
"பக்கத்து நகரில் பெட்டிக்கடை வைத்துக்கொள்" என்றார் அப்பா

கடைசிவரை யாருமே சொல்லவில்லை விவசாயம் பார் என்று.

dai...@gmail.com

unread,
Nov 22, 2013, 4:58:06 AM11/22/13
to performance-test...@googlegroups.com
Thanks for the fast response Thiru.

Setting the credentials at Tools > Current Session Optios > Authentication did not work for me. By the way, I am using WebLOAD 8.6.

The problem I have is that I might need to make different requests with different credentials as part of the same agenda.

With the sample I posted earlier, I am able to get properly authenticated, the only problem is that the sequence is:

Request: First attempt
Response: 401 Unauthorized
Request: Second attempt (done automatically by WebLOAD)
Response: 200 OK.

And what I would like to have is:

Request: First attempt (using preemptive authentication so the credentials are sent even before receiving the 401).
Response: 200 OK.

Do you know if this type of request (with preemptive authentication) is supported by WebLOAD?

Thanks and regards

Daimiel

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/performance-testing-using-webload?hl=en
---
You received this message because you are subscribed to the Google Groups "Performance Testing using Webload" group.
To unsubscribe from this group and stop receiving emails from it, send an email to performance-testing-using-webload+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Thirumoorthy Chettiannan

unread,
Nov 22, 2013, 5:09:59 AM11/22/13
to performance-test...@googlegroups.com
Generally, the authentication data is shared after receiving first 401. I hope that is how it is designed. Try sniffing the actual browser request and see how it goes.

Thanks,
Thiru



To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/performance-testing-using-webload?hl=en
---
You received this message because you are subscribed to the Google Groups "Performance Testing using Webload" group.
To unsubscribe from this group and stop receiving emails from it, send an email to performance-testing-us...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Erez Naim

unread,
Nov 22, 2013, 5:15:24 AM11/22/13
to performance-test...@googlegroups.com

Hi Daimel,

You can use fiddler as a sniffing tool which can be downloaded free from the net, as for WebLoad I would suggest you to fownload the newest version which will cover most of your issues.

Br,

Erez


To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/performance-testing-using-webload?hl=en
---
You received this message because you are subscribed to the Google Groups "Performance Testing using Webload" group.
To unsubscribe from this group and stop receiving emails from it, send an email to performance-testing-us...@googlegroups.com.

dai...@gmail.com

unread,
Nov 22, 2013, 5:27:50 AM11/22/13
to performance-test...@googlegroups.com

I will keep trying to make it work with preemptive authentication. Will post back if I find anything interesting.

Thanks for your time!
Reply all
Reply to author
Forward
0 new messages