This is more involved. First, there is HEAD request with /?embedded=true. Then, there is a POST request to /RPC2. We have to reverse engineer a bit to implement this.
There's more info in parts at
https://forums.openvpn.net/viewtopic.php?f=36&t=29767 https://github.com/ryanharrison554/pyovpn-as/blob/a5d4ad36a952b982cc74c4573595b9031369239a/pyovpn_as/api/cli.py * https://forums.openvpn.net/viewtopic.php?t=28491 http://blog.manton.im/2016/02/reverse-engineering-openvpn-as-login.html