LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Refresh session authomatically in order to avoid manual authentication (https://www.linuxquestions.org/questions/linux-networking-3/refresh-session-authomatically-in-order-to-avoid-manual-authentication-4175525487/)

epimenidecretese 11-15-2014 10:15 AM

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?

unSpawn 11-15-2014 07:42 PM

cURL has "-f" and "-d", best start by looking at the auth page source and see what needs to get POST'ed.

epimenidecretese 12-04-2014 04:32 PM

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!


All times are GMT -5. The time now is 07:11 PM.