<div dir="ltr">Seeing as it works with wget without a cookie once authenticated through the browser, doesn't it seem most likely to be just authenticating by IP address? If so, your best bet is, as James said, to submit a POST request to wherever the login form points. Maybe do this via a script which then runs wget?<br>
David<br><br><div class="gmail_quote">2008/9/28 James Jeffrey <span dir="ltr"><<a href="mailto:james@jgj.org.uk">james@jgj.org.uk</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
As I think Alex and Steve hinted, your router may just not be designed<br>
for you to obtain the file this way. It seems that it isn't expecting<br>
a username and password to be supplied in the way that wget supplies<br>
it (i.e. via http basic auth).<br>
<br>
To work around it, you might need to write a script which logs in by<br>
submitting a POST containing the login details to wherever the form<br>
defined in login.htm goes, and retrieves the session cookie which you<br>
then use when you try to download the log. If you get stuck then if<br>
you post the section of login.html containing everything between<br>
<form> and </form> then someone might be able to supply such a script<br>
(unless it's all done with javascript) - but...<br>
<br>
There might be a simpler option - does your router support syslog?<br>
<br>
What model router is it?<br>
<font color="#888888"><br>
James<br>
</font><div><div></div><div class="Wj3C7c"><br>
On 28 Sep 2008, at 18:12, Patrick Dupre wrote:<br>
<br>
> On Sun, 28 Sep 2008, Steve Kemp wrote:<br>
><br>
>> On Sun Sep 28, 2008 at 17:39:37 +0100, Patrick Dupre wrote:<br>
>><br>
>>> function startUp() {location = "login.htm"}<br>
>>> </script><br>
>>> </head><br>
>>> <body bgcolor="#FFFFFF" text="#000000"<br>
>>> onLoad='setTimeout("startUp()",1);'><br>
>>> </body><br>
>><br>
>> So it downloads a page which :<br>
>><br>
>> 1. Defines the function startUp();<br>
>> 2. After the page has been loaded (by a browser) redirects to:<br>
>> http://..../login.htm<br>
>><br>
>> I guess then that it doesn't like your login - either because it<br>
>> was wrong, or because HTTP basic-auth isn't being used.<br>
><br>
> OK, but, if I am logged through a browser, then every thing works<br>
> fine !<br>
> I do not see what I could change in the setup.<br>
><br>
> Regards<br>
><br>
> --<br>
> ---<br>
> =<br>
> =<br>
> =<br>
> =<br>
> ======================================================================<br>
> Patrick DUPRÉ | |<br>
> Department of Chemistry | | Phone: (44)-<br>
> (0)-1904-434384<br>
> The University of York | | Fax: (44)-<br>
> (0)-1904-432516<br>
> Heslington | |<br>
> York YO10 5DD United Kingdom | | email: <a href="mailto:pd520@york.ac.uk">pd520@york.ac.uk</a><br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
> =<br>
</div></div>> =======================_______________________________________________<br>
<div><div></div><div class="Wj3C7c">> York mailing list<br>
> <a href="mailto:York@lists.lug.org.uk">York@lists.lug.org.uk</a><br>
> <a href="https://mailman.lug.org.uk/mailman/listinfo/york" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/york</a><br>
<br>
<br>
_______________________________________________<br>
York mailing list<br>
<a href="mailto:York@lists.lug.org.uk">York@lists.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/york" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/york</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>David Harker<br>Phone: +44 (07903) 170223<br>Calendar: <a href="http://tinyurl.com/24pa7z">http://tinyurl.com/24pa7z</a><br>Uni: <a href="http://www-users.york.ac.uk/~dhh500/">http://www-users.york.ac.uk/~dhh500/</a><br>
Personal: <a href="http://www.bewm.org/">http://www.bewm.org/</a><br>
</div>