You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Oliver Lloyd <ol...@hotmail.com> on 2011/08/19 23:29:13 UTC

Re: Unable to login to website - JMeter noob

Have you tried using the HTTP Request Sampler in place of the HTTP Request
HTTPClient Sampler?

You might also want to try selecting 'Follow Redirects'.

If you google "Entity enclosing requests cannot be redirected without user
intervention", there's more information for why this response is given.

Also, 30 milliseconds is not a very generous window to give your
application. You might want to consider increasing the timeouts a little!

PS. What a well formatted post, very pleasant to read.

--
View this message in context: http://jmeter.512774.n5.nabble.com/Unable-to-login-to-website-JMeter-noob-tp4716577p4717082.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Unable to login to website - JMeter noob

Posted by Oliver Lloyd <ol...@hotmail.com>.
Sarcasm where sarcasm is due - that's what I say.

-----
http://www.http503.com/
--
View this message in context: http://jmeter.512774.n5.nabble.com/Unable-to-login-to-website-JMeter-noob-tp4716577p4726120.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Unable to login to website - JMeter noob

Posted by Felix Frank <ff...@mpexnet.de>.
On 08/19/2011 11:29 PM, Oliver Lloyd wrote:
> PS. What a well formatted post, very pleasant to read.

You know, reading this sans context via e-mail, I was thinking you were
back in the sarcasm department.

Now I have to concur - pleasure to see I was wrong.

(As an aside - runnig this as a mixed forum/mailing-list is a bad idea IMO.)

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Unable to login to website - JMeter noob

Posted by shettyd <sh...@gmail.com>.
FYI
>at I did need the URL Re-Write because the form element's action attribute
was always constant and required the session id to be passed to the
j_security_check-- even though this was not always the case with what I had
observed in firebug. 

This is the way most java based webservers work. On the first request the
webserver doesnt know if your browser is going to accept cookies so in the
response to the first request, all urls are usually suffixed by the session
id (Assuming the webserver supports url rewriting, normally the case). 
on the second request , if the webserver gets a cookie , then it knows your
browser supports cookies and in subsequent responses it will not add a
sessionid suffix to the urls. This is why your firebug behaves differently.
if you clean all cookies and access your page fresh , you will see the
sessionid suffix in the url. if you just click some other link on your page,
then you will not see the session id anymore.

>From a Jmeter perspective , all you really need is to add a Cookie manager
then you can ignore all the session id rewriting bits. (i.e just remove them
from your test script). Again this assumes that your webserver is configured
to allow session ids in cookie, which is also usually the case for java
based webservers.


--
View this message in context: http://jmeter.512774.n5.nabble.com/Unable-to-login-to-website-JMeter-noob-tp4716577p4724692.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Unable to login to website - JMeter noob

Posted by Oliver Lloyd <ol...@hotmail.com>.
Jreed, you are a model forum participant.

-----
http://www.http503.com/
--
View this message in context: http://jmeter.512774.n5.nabble.com/Unable-to-login-to-website-JMeter-noob-tp4716577p4724633.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Unable to login to website - JMeter noob

Posted by Oliver Lloyd <ol...@hotmail.com>.
Not confusing at all; you are correct on every point. You've astutely
identified that your requests (although green) are not working properly and
you've pretty much narrowed down the reason (no cookie). You barely need any
help! But you should know that in order for JM to handle cookies you need to
add a 
http://jakarta.apache.org/jmeter/usermanual/build-web-test-plan.html#adding_cookie_support
Cookie Manager .

-----
http://www.http503.com/
--
View this message in context: http://jmeter.512774.n5.nabble.com/Unable-to-login-to-website-JMeter-noob-tp4716577p4724218.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org