[twill] twill

Ondrej Certik ondrej at certik.cz
Fri Feb 10 09:22:18 PST 2006


ondra at sila:~/twill/twill-latest$ python twill-sh

 -= Welcome to twill! =-

current page:  *empty page*
>> debug equiv-refresh 1
current page:  *empty page*
>> debug http 1
current page:  *empty page*
>> agent ie6
current page:  *empty page*
>> go http://www.o2.ie/
connect: (www.o2.ie, 80)
send: 'GET / HTTP/1.1\r\nAccept-Encoding: identity\r\nHost:
www.o2.ie\r\nConnection: close\r\nAccept: text/html; */*\r\nUser-agent:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\n\r\n'
reply: 'HTTP/1.1 302 Found\r\n'
header: Date: Fri, 10 Feb 2006 17:19:22 GMT
header: Server: Apache
header: Set-Cookie: missionctl=mc2; path=/; domain=www.o2.ie
header: Location: http://web.o2.ie/
header: Content-Length: 201
header: Connection: close
header: Content-Type: text/html; charset=iso-8859-1
connect: (web.o2.ie, 80)
send: 'GET / HTTP/1.1\r\nAccept-Encoding: identity\r\nHost:
web.o2.ie\r\nConnection: close\r\nAccept: text/html; */*\r\nUser-agent:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Server: Netscape-Enterprise/6.0
header: Date: Fri, 10 Feb 2006 17:19:21 GMT
header: Content-type: text/html
header: Connection: close
==> at http://web.o2.ie/
current page: http://web.o2.ie/
>> fv 3 username ###
current page: http://web.o2.ie/
>> fv 3 password ###
current page: http://web.o2.ie/
>> submit
Note: submit is using submit button: name="imageField", value=""
send: 'POST /NASApp/Portal/Login HTTP/1.1\r\nAccept-Encoding:
identity\r\nContent-Length: 61\r\nConnection: close\r\nAccept: text/html;
*/*\r\nUser-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\nHost:
apps.o2.ie\r\nReferer: http://web.o2.ie/\r\nContent-type:
application/x-www-form-urlencoded\r\n\r\n'
send: 'username=###&password=###&imageField.x=1&imageField.y=1'
reply: 'HTTP/1.1 200 200 OK\r\n'
header: Server: Netscape-Enterprise/6.0
header: Date: Fri, 10 Feb 2006 17:19:43 GMT
header: Set-Cookie: GX_jst=6e4750b2662d6166;Domain=apps.o2.ie;Path=/;
path=/NASApp/System
header: Set-Cookie: GX_jst=6e4750b2662d6166;Domain=apps.o2.ie;Path=/
header: Set-Cookie: JSESSIONID=ae25bc1993fbbc3f;Domain=apps.o2.ie;Path=/
header: Connection: close
current page: https://apps.o2.ie/NASApp/Portal/Login
>> show
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>o2.ie</title>
<meta http-equiv="refresh" content="0;URL=http://web.o2.ie/personal/">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
</body>
</html>


current page: https://apps.o2.ie/NASApp/Portal/Login
>>


On Fri, Feb 10, 2006 at 08:37:52AM -0800, titus at caltech.edu wrote:
> -> Thanks for the reply. I tested the twill-latest, I did:
> -> 
> -> debug equiv-refresh 1
> -> agent ie6
> -> go http://www.o2.ie/
> -> fv 3 username ###
> -> fv 3 password ###
> -> submit
> -> show
> 
> -> This is the output:
> -> 
> -> >> submit
> -> Note: submit is using submit button: name="imageField", value=""
> -> current page: https://apps.o2.ie/NASApp/Portal/Login
> -> >> show
> -> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> -> <html>
> -> <head>
> -> <title>o2.ie</title>
> -> <meta http-equiv="refresh" content="0;URL=http://web.o2.ie/personal/">
> -> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> -> </head>
> -> <body>
> -> </body>
> -> </html>
> 
> [ munch ]
> 
> Seems like twill isn't picking up on the meta tag.  Very odd.  Could you
> also send me the results of turning on 'http' debugging?
> 
> 	debug http 1
> 
> I'd guess that it has to do with some headers that are being passed back
> and forth, because the HTML above works fine for me.
> 
> thanks, and sorry for the bother,
> --t



More information about the twill mailing list