EWS: Another try for checkEndPointUrl, head on /ews/exchange.asmx and follow redirects to wsdl
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2203 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
1b22263e1e
commit
e6ff19fb71
|
@ -164,8 +164,7 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||||
*/
|
*/
|
||||||
protected void checkEndPointUrl(String endPointUrl) throws IOException {
|
protected void checkEndPointUrl(String endPointUrl) throws IOException {
|
||||||
HttpMethod checkMethod = new HeadMethod(endPointUrl);
|
HttpMethod checkMethod = new HeadMethod(endPointUrl);
|
||||||
checkMethod.setPath("/ews/services.wsdl");
|
checkMethod.setFollowRedirects(true);
|
||||||
checkMethod.setFollowRedirects(false);
|
|
||||||
try {
|
try {
|
||||||
int status = DavGatewayHttpClientFacade.executeNoRedirect(httpClient, checkMethod);
|
int status = DavGatewayHttpClientFacade.executeNoRedirect(httpClient, checkMethod);
|
||||||
if (status == HttpStatus.SC_UNAUTHORIZED) {
|
if (status == HttpStatus.SC_UNAUTHORIZED) {
|
||||||
|
|
Loading…
Reference in New Issue