question

amichaels avatar image
amichaels asked sandeepreddynv commented

Does the HTTP session type handle 3xx redirects?

I'm trying to test a basic web app that redirects to the login page if the username/password are incorrect. I can't seem to get the http session to do this. If I do a POST to my login page... post ./login I get the following response. Note the structure view, where I see the "no protocol" error. Not sure why I get that. Also note the 302 response code. This situation happens whenever there is a 302 response code. Is this expected? ![http session error][1] [1]: /storage/temp/4037-http_post_error.png
iTesterror messagehttpsession
http_post_error.png (61.1 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
sandeepreddynv avatar image
sandeepreddynv answered sandeepreddynv commented
![alt text][1]Hi Andy, For 3xx redirects Rest session will be useful as we have an option "Auto Redirect 3xx status codes" in sesison profile. Please give it a try and I hope it meets your requirement !! Regards, Venkat [1]: /storage/temp/4038-rest.jpg

rest.jpg (70.0 KiB)
2 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

amichaels avatar image amichaels ♦ commented ·
Hi Sandeep! So, are you saying that the REST session obsoletes the HTTP session?
0 Likes 0 ·
sandeepreddynv avatar image sandeepreddynv ♦ commented ·
Yes, Rest session is the advanced one for HTTP session and it has GUI view where HTTP session has only terminal access.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.