Connecting Wemos d1 mini to University Wifi

I have a Wemos d1 that I'd like to connect to wifi for a project. However, connecting to the wifi isn't as simple as network Id and password. I'm on university wifi. Whenever I connect I can do it one of two ways. I can click on my computer on "WIFIname" and this prompts me to enter a username and password credential. The second way is to connect to "Wifi-Guest" which sends me to a redirect page when I acess the internet. The first page is an accept statement which once accept it hit redirects you to a page I can again enter my username and password to connect. How would I be able to code this into the Wemos so that I can connect my project to the internet?