Problem connecting with WebDAV on IIS7.5
Hi,
I looked for a WebDAV client and WinSCP (on Windows 7 32 bits) was a no brainer here :)
I downloaded the latest version 2 days ago... but nothing worked as excepted. (At least no easy as a ssh)
I try to use a webdav connection on a https server with WinSCP.
The server is a SharePoint 2010 on IIS 7.5.
My credential required a domain, username and password in a basic authentification.
When I use WinSCP, I always receive a message 405 "405 Method Not Allowed" whatever I try.
I did try a lot of stuff for make it work and I still hope figure out how to connect with WinSCP.
The connection with Windows Explorer work easily but I don't want to use it because my final client machine will be a Linux.
The command line is
and that work every time.
(My Windows credential aren't the same)
I did trace the communication with "NET USE" and "WinSCP" with Fiddler2.
This is "NET commandline" connection in 2 steps:
1.Request
A SSLv2-compatible ClientHello handshake was found. Fiddler extracted the parameters below.
Compression:
(not specified)
Response:
Encrypted HTTPS traffic flows through this CONNECT tunnel. HTTPS Decryption is enabled in Fiddler, so decrypted sessions running in this tunnel will be shown in the Web Sessions list.
Secure Protocol: Tls
Cipher: Aes128 128bits
Hash Algorithm: Sha1 160bits
Key Exchange: RsaKeyX 2048bits
Server Certificate:
2.Request
Response:
I did try to trace WinSCP... without success with WinSCP stream.
I think IIS 7.5 do not respond as WinSCP expect.
I hope that you have an idea on what's wrong.
I looked for a WebDAV client and WinSCP (on Windows 7 32 bits) was a no brainer here :)
I downloaded the latest version 2 days ago... but nothing worked as excepted. (At least no easy as a ssh)
I try to use a webdav connection on a https server with WinSCP.
The server is a SharePoint 2010 on IIS 7.5.
My credential required a domain, username and password in a basic authentification.
When I use WinSCP, I always receive a message 405 "405 Method Not Allowed" whatever I try.
I did try a lot of stuff for make it work and I still hope figure out how to connect with WinSCP.
The connection with Windows Explorer work easily but I don't want to use it because my final client machine will be a Linux.
The command line is
NET USE * https://servername:443/testssharepoint/ password /USER:different_domain\username
(My Windows credential aren't the same)
I did trace the communication with "NET USE" and "WinSCP" with Fiddler2.
This is "NET commandline" connection in 2 steps:
1.Request
CONNECT servername.com:443 HTTP/1.1 Host: servername.com:443
Version: 3.1 (TLS/1.0) Random: D2 97 A6 D2 E3 7B 5E EB 17 41 74 02 A9 E6 3E 81 "Time": 2081-12-28 02:40:02 SessionID: empty Extensions: none Ciphers: [C014] TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA [C013] TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA [0035] TLS_RSA_AES_256_SHA [002F] TLS_RSA_AES_128_SHA [C00A] TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA [C009] TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA [0038] TLS_DHE_DSS_WITH_AES_256_SHA [0032] TLS_DHE_DSS_WITH_AES_128_SHA [000A] SSL_RSA_WITH_3DES_EDE_SHA [0013] SSL_DHE_DSS_WITH_3DES_EDE_SHA [0005] SSL_RSA_WITH_RC4_128_SHA [0004] SSL_RSA_WITH_RC4_128_MD5 [10080] SSL2_RC4_128_WITH_MD5 [700C0] SSL2_DES_192_EDE3_WITH_MD5 [00FF] TLS_EMPTY_RENEGOTIATION_INFO_SCSV
(not specified)
Response:
HTTP/1.1 200 Connection established
Secure Protocol: Tls
Cipher: Aes128 128bits
Hash Algorithm: Sha1 160bits
Key Exchange: RsaKeyX 2048bits
Server Certificate:
[Subject] CN=*.servername.com, O=******** Inc., L=*******, S=******, C=** [Issuer] CN=DigiCert SHA2 Secure Server CA, O=DigiCert Inc, C=US [Serial Number] 0??????????????????????????????? [Not Before] 2014-09-10 20:00:00 [Not After] 2018-01-03 07:00:00 [Thumbprint] *****
PROPFIND https://servername.com/testssharepoint/Tests%20Documents HTTP/1.1 Connection: Keep-Alive User-Agent: Microsoft-WebDAV-MiniRedir/6.1.7601 Depth: 0 translate: f Content-Length: 0 Host: servername.com Authorization: Basic a*******= Cookie: WSS_KeepSessionAuthenticated=*****=="
HTTP/1.1 207 MULTI-STATUS Connection: Keep-Alive Set-Cookie: cadata996C93E01EBA443DB60D27A197E8CA52=***=="; HttpOnly; secure; path=/ Content-Length: 1151 Date: Thu, 23 Jul 2015 13:04:20 GMT Content-Type: text/xml Server: Microsoft-IIS/7.5 Cache-Control: no-cache SPRequestGuid: **** Set-Cookie: WSS_KeepSessionAuthenticated={****}; path=/ X-SharePointHealthScore: 0 Public-Extension: http://schemas.microsoft.com/repl-2 Set-Cookie: WSS_KeepSessionAuthenticated={****}; path=/ Persistent-Auth: true X-Powered-By: ASP.NET MicrosoftSharePointTeamServices: 14.0.0.6112 <?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:" xmlns:Office="urn:schemas-microsoft-com:office:office" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:Z="urn:schemas-microsoft-com:"> <D:response><D:href>https://servername.com/testssharepoint/Tests%20Documents</D:href><D:propstat><D:prop><D:displayname>Tests Documents</D:displayname><D:lockdiscovery/><D:supportedlock/><D:isFolder>t</D:isFolder><D:iscollection>1</D:iscollection><D:ishidden>0</D:ishidden><D:getcontenttype>application/octet-stream</D:getcontenttype><D:getcontentlength>0</D:getcontentlength><D:resourcetype><D:collection/></D:resourcetype><Repl:authoritative-directory>t</Repl:authoritative-directory><D:getlastmodified>2015-07-21T18:51:09Z</D:getlastmodified><D:creationdate>2012-07-27T19:19:28Z</D:creationdate><Repl:repl-uid>rid:{***}</Repl:repl-uid><Repl:resourcetag>rt:DCD68809-*******@00000000000</Repl:resourcetag><D:getetag>"{DCD68809-******},0"</D:getetag></D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus>
I think IIS 7.5 do not respond as WinSCP expect.
I hope that you have an idea on what's wrong.