replace openconnect_set_hostname with openconnect_parse_url
openconnect_vpninfo_new setup port to 0. There is no public method to change just port. When vpn host is setup by openconnect_set_hostname method, it leads to the situation when connection is open to port 443, but Host header in initial request contains "server:0". Cisco server refuses such request.
When openconnect_parse_url method ise used, it setups host, port and urlpath. Port 443 is used as a default.