LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-26-2007, 11:34 AM   #1
thyrf
LQ Newbie
 
Registered: Apr 2007
Distribution: Debian Etch
Posts: 10

Rep: Reputation: 0
How to automate html proxy login


Hi,

at our residences we have wireless AP's that provide our internet. To access it we have to login with a provided username and password through an html form - not the standard http proxy you'd expect.

How can I/is it possible to automate this? It's a pain in the arse only being able to login through a gui web browser and not being able to run netinst installs.

Debian Etch
Wireless LAN (already set up to auto connect using dhcp)

Thanks.
 
Old 04-27-2007, 04:10 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
if you just do the same thing each time, then yes it's possible able to be automatablifactionized. i'd suggest you have a look at curl and grab the page you need to log in to. it depends what basis your proxy uses to authenticate though.... if it's just connections from your IP it should be fine, if you're passing cookies around and such, could be trickier.
 
Old 04-28-2007, 11:20 AM   #3
thyrf
LQ Newbie
 
Registered: Apr 2007
Distribution: Debian Etch
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks, that seems to be the thing I'm after. Having problems following redirects (which I absolutely require) - apparently curl doesn't do that. Maybe the mailing list will help
 
Old 04-29-2007, 04:17 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
depends what kind of a redirect it is. at the worst you can just hack the url out of the returned page and call it yourself.. you're already scripting it's just another step in the chain really. curl will follow the Location header in an http response (if it exists) with the -L option, but normaly that's a default AFAIK. if it's an informal META redirect or something then that's none of curl's business.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Speaking Unix, Part 6: Automate, automate, automate! LXer Syndicated Linux News 0 01-04-2007 09:54 AM
how to automate ssh login? Lotharster Linux - Networking 2 12-05-2005 12:54 PM
HTML login script js_valencia Linux - Newbie 2 11-20-2005 03:45 PM
how to automate telnet login, script or something kiwibird Linux - Networking 2 11-09-2005 02:02 PM
can squid auto-login to other proxy apeacez Linux - Networking 0 02-18-2004 11:54 PM


All times are GMT -5. The time now is 07:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration