Hi,
Could help me with the problem below?
How to obtain the value of the variable passed in the cookie? I need it to pass the URL of the POST.
In the application below, uses the URL of the post in the form uses the value of the variable defined earlier in the jsessionid cookie.
I've read many documents but found nothing I could to help me. I appreciate any help.
Thank you.
GET /ger-t1-2010-simulado/ HTTP/1.1
Host: HOST.DOMAIN:8780
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Wed, 31 Dec 1969 21:00:00 GMT-03:00
Set-Cookie: JSESSIONID=F840C5A88E0F3C7070C5F8D7497FA00E; Path=/
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 3843
Date: Mon, 30 Aug 2010 17:54:18 GMT
<html>
<head>
.<title>Login</title>
...
(ZIP)
...
<form id="formularioSubmissao" name="form" action="/ger-t1-2010-simulado/j_security_check;jsessionid=F840C5A88E0F3C7070C5F8 D7497FA00E" method="post" style="display:none">
.<input name="j_username" type="text"/>
.<input name="j_password" type="password"/>
.<input type="submit" value="Entrar"/>
</form>
</body>
</html>
POST /ger-t1-2010-simulado/j_security_check;jsessionid=F840C5A88E0F3C7070C5F8D7497FA00E HTTP/1.1
Host: HOST.DOMAIN:8780
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://MYHOST.MYDOMAIN:8780/ger-t1-2010-simulado/
Cookie: JSESSIONID=F840C5A88E0F3C7070C5F8D7497FA00E
Content-Type: application/x-www-form-urlencoded
Content-Length: 93
j_username=USERNAME&j_password=PASSWORD
Could help me with the problem below?
How to obtain the value of the variable passed in the cookie? I need it to pass the URL of the POST.
In the application below, uses the URL of the post in the form uses the value of the variable defined earlier in the jsessionid cookie.
I've read many documents but found nothing I could to help me. I appreciate any help.
Thank you.
GET /ger-t1-2010-simulado/ HTTP/1.1
Host: HOST.DOMAIN:8780
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Wed, 31 Dec 1969 21:00:00 GMT-03:00
Set-Cookie: JSESSIONID=F840C5A88E0F3C7070C5F8D7497FA00E; Path=/
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 3843
Date: Mon, 30 Aug 2010 17:54:18 GMT
<html>
<head>
.<title>Login</title>
...
(ZIP)
...
<form id="formularioSubmissao" name="form" action="/ger-t1-2010-simulado/j_security_check;jsessionid=F840C5A88E0F3C7070C5F8 D7497FA00E" method="post" style="display:none">
.<input name="j_username" type="text"/>
.<input name="j_password" type="password"/>
.<input type="submit" value="Entrar"/>
</form>
</body>
</html>
POST /ger-t1-2010-simulado/j_security_check;jsessionid=F840C5A88E0F3C7070C5F8D7497FA00E HTTP/1.1
Host: HOST.DOMAIN:8780
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://MYHOST.MYDOMAIN:8780/ger-t1-2010-simulado/
Cookie: JSESSIONID=F840C5A88E0F3C7070C5F8D7497FA00E
Content-Type: application/x-www-form-urlencoded
Content-Length: 93
j_username=USERNAME&j_password=PASSWORD