LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-15-2014, 10:15 AM   #1
epimenidecretese
LQ Newbie
 
Registered: Dec 2013
Distribution: Slackware
Posts: 20

Rep: Reputation: 0
Refresh session authomatically in order to avoid manual authentication


Hi folks,

I have a utilite pro with archlinuxarm installed and I live in a student dorm, so I have internet access through wired connection and it works great.

Authentication works via web proxy and my problem is the following: I would like to refresh the session authomatically when it is no longer valid.

Is there a way to do it maybe with curl? How do I send the password? The authentication page opens authomatically when I try to reach a web site, so apparently I can't point directly to it.

Any idea?

EDIT: the authentication page is, as I understood, a captive portal. So I would need to create a script to authomatically login every hour. Would this need to be written according to the specific captiveportal page the is implemented in my network or are there any standard methods that always work?

Last edited by epimenidecretese; 11-15-2014 at 10:42 AM. Reason: Added new informations
 
Old 11-15-2014, 07:42 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
cURL has "-f" and "-d", best start by looking at the auth page source and see what needs to get POST'ed.
 
1 members found this post helpful.
Old 12-04-2014, 04:32 PM   #3
epimenidecretese
LQ Newbie
 
Registered: Dec 2013
Distribution: Slackware
Posts: 20

Original Poster
Rep: Reputation: 0
Yes, I solved the problem withh cURL and -d option. I saved the page locally, changed the form method from POST to GET and filled the form so I could check the correct string to post. It worked, thanks!
 
  


Reply

Tags
curl, networking, proxy, script



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
How to trigger a manual refresh/update in conky jervis_tetch Linux - Desktop 3 05-06-2014 02:21 AM
Increase NIC Rx buffer in order to avoid "overruns" m4rtin Linux - Networking 1 06-14-2011 05:13 PM
authentication to SMTP server to avoid telnet sailu_mvn Linux - Software 2 12-20-2005 03:52 AM
manual update, what order? Hama Mandriva 2 04-12-2004 11:20 AM
how to avoid manual fsck thedeud Linux - General 16 04-08-2003 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration