Sending an HTTP request while not logged into WiFi


Hi, I am trying to make functionality in my app to log into a WiFi network without having to type in the username and password every time. The problem I’m running into is when I send the post request to ‘’ while I’m not signed into WiFi it attempts to send it using the cell network and of course it times about because it can’t access on the cell network. Is there a way to send a request using WiFi?