mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
Fix for Exchange 2013 support
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2103 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
225c4424eb
commit
d7a4365c3f
@ -33,6 +33,7 @@ import org.apache.commons.codec.binary.Base64;
|
|||||||
import org.apache.commons.httpclient.*;
|
import org.apache.commons.httpclient.*;
|
||||||
import org.apache.commons.httpclient.methods.ByteArrayRequestEntity;
|
import org.apache.commons.httpclient.methods.ByteArrayRequestEntity;
|
||||||
import org.apache.commons.httpclient.methods.GetMethod;
|
import org.apache.commons.httpclient.methods.GetMethod;
|
||||||
|
import org.apache.commons.httpclient.methods.HeadMethod;
|
||||||
import org.apache.commons.httpclient.methods.PostMethod;
|
import org.apache.commons.httpclient.methods.PostMethod;
|
||||||
import org.apache.commons.httpclient.params.HttpClientParams;
|
import org.apache.commons.httpclient.params.HttpClientParams;
|
||||||
|
|
||||||
@ -162,7 +163,7 @@ public class EwsExchangeSession extends ExchangeSession {
|
|||||||
* @throws IOException on error
|
* @throws IOException on error
|
||||||
*/
|
*/
|
||||||
protected void checkEndPointUrl(String endPointUrl) throws IOException {
|
protected void checkEndPointUrl(String endPointUrl) throws IOException {
|
||||||
HttpMethod getMethod = new GetMethod(endPointUrl);
|
HttpMethod getMethod = new HeadMethod(endPointUrl);
|
||||||
getMethod.setFollowRedirects(false);
|
getMethod.setFollowRedirects(false);
|
||||||
try {
|
try {
|
||||||
int status = DavGatewayHttpClientFacade.executeNoRedirect(httpClient, getMethod);
|
int status = DavGatewayHttpClientFacade.executeNoRedirect(httpClient, getMethod);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user