Some servers will continue to respond with a redirect, even redirecting a
request back to the *same* URL that was requested, unless we close the
connection and try again.
Red Hat bug #964650.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
request_body_type = NULL;
request_body[0] = 0;
method = "GET";
+ openconnect_close_https(vpninfo, 0);
} else {
return -EIO;
}
<ul>
<li><b>OpenConnect HEAD</b>
<ul>
+ <li>Close connection before falling back to non-xmlpost mode <a href="https://bugzilla.redhat.com/show_bug.cgi?id=964650"><i>(RH#964650)</i></a></li>
<li>Improve error handling when server closes connection (<a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708928">Debian bug #708928</a>)</li>
</ul><br/>
</li>