[YLUG] Router

Patrick Dupre pd520 at york.ac.uk
Sun Sep 28 18:15:51 UTC 2008


Thank for the commnents.

It is a TW100-S4W1CA from Trendnet, I looks like that their is a
system log (which generates a log file).

> As I think Alex and Steve hinted, your router may just not be designed
> for you to obtain the file this way. It seems that it isn't expecting
> a username and password to be supplied in the way that wget supplies
> it (i.e. via http basic auth).
>
> To work around it, you might need to write a script which logs in by
> submitting a POST containing the login details to wherever the form
> defined in login.htm goes, and retrieves the session cookie which you
> then use when you try to download the log. If you get stuck then if
> you post the section of login.html containing everything between
> <form> and </form> then someone might be able to supply such a script
> (unless it's all done with javascript) - but...
>
> There might be a simpler option - does your router support syslog?
>
> What model router is it?
>
> James
>
> On 28 Sep 2008, at 18:12, Patrick Dupre wrote:
>
>> On Sun, 28 Sep 2008, Steve Kemp wrote:
>>
>>> On Sun Sep 28, 2008 at 17:39:37 +0100, Patrick Dupre wrote:
>>>
>>>> function startUp() {location = "login.htm"}
>>>> </script>
>>>> </head>
>>>> <body bgcolor="#FFFFFF" text="#000000"
>>>> onLoad='setTimeout("startUp()",1);'>
>>>> </body>
>>>
>>> So it downloads a page which :
>>>
>>>   1.  Defines the function startUp();
>>>   2.  After the page has been loaded (by a browser) redirects to:
>>>       http://..../login.htm
>>>
>>> I guess then that it doesn't like your login - either because it
>>> was wrong, or because HTTP basic-auth isn't being used.
>>
>> OK, but, if I am logged through a browser, then every thing works
>> fine !
>> I do not see what I could change in the setup.
>>
>> Regards
>>
>> --
>> ---
>> =
>> =
>> =
>> =
>> ======================================================================
>> Patrick DUPRÉ                      |   |
>> Department of Chemistry            |   |    Phone: (44)-
>> (0)-1904-434384
>> The University of York             |   |    Fax:   (44)-
>> (0)-1904-432516
>> Heslington                         |   |
>> York YO10 5DD  United Kingdom      |   |    email: pd520 at york.ac.uk
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =======================_______________________________________________
>> York mailing list
>> York at lists.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/york
>
>
> _______________________________________________
> York mailing list
> York at lists.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/york
>
>

-- 
---
==========================================================================
  Patrick DUPRÉ                      |   |
  Department of Chemistry            |   |    Phone: (44)-(0)-1904-434384
  The University of York             |   |    Fax:   (44)-(0)-1904-432516
  Heslington                         |   |
  York YO10 5DD  United Kingdom      |   |    email: pd520 at york.ac.uk
==========================================================================


More information about the York mailing list