<br>Grrrr... it turns out the auth process is putting up a separate window with userid/password fields in it. <br><br>Can twill deal w/that?<br><br>-T <br><br><div class="gmail_quote">On Thu, Apr 16, 2009 at 5:20 PM, James Cameron <span dir="ltr">&lt;<a href="mailto:james.cameron@hp.com">james.cameron@hp.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Thu, Apr 16, 2009 at 05:16:00PM -0700, Tennis Smith wrote:<br>
&gt;    Yes, I have to fill in a form.  Can you point me to an example of how<br>
&gt;    to do that? THanks. :)<br>
<br>
</div>Sure.<br>
<br>
My internet service provider has a web page to tell me the current<br>
usage, and it works by prompting in a form, then issuing a cookie that<br>
is used to validate further requests.<br>
<br>
For this I used twill-sh in a shell script as follows:<br>
<br>
twill-sh &lt;&lt;EOF &gt;/dev/null 2&gt;/dev/null<br>
go <a href="https://example.com/usage/daily/" target="_blank">https://example.com/usage/daily/</a><br>
fv Login username quozl<br>
fv Login password qwertyuiop<br>
submit<br>
save_html /var/tmp/usage.html<br>
EOF<br>
<br>
The remains of my script processed the usage.html file to get the byte<br>
counts.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">James Cameron<br>
<a href="http://ftp.hp.com.au/sigs/jc/" target="_blank">http://ftp.hp.com.au/sigs/jc/</a><br>
<br>
_______________________________________________<br>
twill mailing list<br>
<a href="mailto:twill@lists.idyll.org">twill@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/twill" target="_blank">http://lists.idyll.org/listinfo/twill</a><br>
</div></div></blockquote></div><br>