On Friday 11 November 2005 00:57, Bruce Marshall wrote:
On Thursday 10 November 2005 06:39 pm, Joe Morris (NTM) wrote:
My present ISP just started using an authenticating gateway for some reason, meaning all internet protocols are blocked until I open a browser, try to go anywhere, get the prompt to authenticate, enter my username and password, and then I am allowed past the local net. Does anyone know of a way to automate this in Linux. From a boot, I have several things accessing the internet, i.e. xntpd, fetchmail, etc., that just fail til I authenticate. Any ideas?
I hope you're not paying for that kind of service.......
What would happen if you telnet'd to something on port 80? Wonder if you could put your password in that way and then automate the telnet.
It all depends on the "authorization" method. If it is standard, you could probably get a webpage from the command line with one of the "get a webpage" commandline comamnds. (Boy, that is pretty ackward). I would try wget first. Other commands are lynx, and w3m. these are "Text Browsers" built to view webpages in a text console, but have a "dump" option that lets you use them in batches. Btoh programs support http authorizations. All 3 of the above are included in the SUSE distribution, so they are just a few Clicks away. If none of those work Perl has a quite a few diferent http client modules, but I've found them dificult to program, and I don't remember if any are included with SUSE. Jerry Jerry