Raspberry Pi is required to automatically connect to Wi-fi.

The Wi-fi-point is configured so that when you connect to it, the browser automatically opens, where you need to enter your login and password and tick (agreement with the rules).

I usually connect to wi-fi using wicd.

How to transfer login and password automatically, for example using curl (-F)?

  • I would do that. I wrote a script that is able to make the necessary requests with the help of curl and would put upstart (or systemd, what you have there) to launch after raising the network. But wicd itself can run scripts. so it will be even more correct. - KoVadim 2:47 pm

1 answer 1

if you use the wicd program, then, according to man wicd , you can use , for example, the shell script by performing a shell script in /etc/wicd/scripts/postconnect/

You can use the parameters passed to the script to bind to the desired interface in this script:

 $1 - the connection type (wireless/wired). $2 - the ESSID (network name). $3 - the BSSID (gateway MAC). 

like this :

 if [ "$1" == "wireless" -a "$2" == "имя-точки-доступа" ]; then curl ... fi 

and what parameters to pass to the curl program ( wget , etc.), so that it “logs in” on the provider's page, depends entirely on the content of this page.