Connecting to network that requires web login

What is the problem?
The only Internet that I have access to requires a web login. With Octopi only supporting a login via the .txt file, I have no way to do this. I also can't connect to ethernet as that only supports authorized devices (I won't be able to get my RasPi authorized). Is there any way to download an image that includes the normal RasPi interface so I can login via the web?

What did you already try to solve it?
I tried editing the .txt file but do not think that it can support the web-based login.

Additional information about your network (Hardware you are trying to connect to, hardware you are trying to connect from, router, access point, used operating systems, ...)
I am trying to connect my RasPi 4 to my school's network that requires a web login.

I believe this can be done with the curl command line. Start with the Google search string "using curl for web login" and go from there.