My application has to detect that the device connected to the Wi-Fi network is the required one and then fire a HTTP request over that Wi-Fi network programmatically. I have
You can use OkHttp and a custom SocketFactory. See https://github.com/square/okhttp/issues/2404 for more details.