WebDAV connection error

Advertisement

Pasha_ZZZ
Guest

WebDAV connection error

Error connecting to specific WebDAV server:
Could not read status line: Secure connection truncated.
Total Commander DAV plugin works fine. And net use maps it as disk without errors too.

curl -u user:pass -X PROPFIND -H "Depth: 1" "https://********"
not working, but if I add
--negotiate --http1.1
all ok.

There is log of WinSCP try:
. 2025-03-17 06:20:37.856 --------------------------------------------------------------------------
. 2025-03-17 06:20:37.857 WinSCP Version 6.3.7 (Build 15131 2025-02-20) (OS 10.0.19045 – Windows 10 Enterprise)
. 2025-03-17 06:20:37.857 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2025-03-17 06:20:37.857 Log level: Debug 2
.........
. 2025-03-17 06:20:37.874 --------------------------------------------------------------------------
. 2025-03-17 06:20:37.874 Session name: ******* (Modified site)
. 2025-03-17 06:20:37.874 Host name: ******* (Port: 443)
. 2025-03-17 06:20:37.874 User name: **** (Password: Yes, Key file: No, Passphrase: No)
. 2025-03-17 06:20:37.874 Transfer Protocol: WebDAV
. 2025-03-17 06:20:37.874 Proxy: None
. 2025-03-17 06:20:37.874 HTTPS: Yes [Client certificate: No]
. 2025-03-17 06:20:37.874 WebDAV: Tolerate non-encoded: No
. 2025-03-17 06:20:37.874 TLS/SSL versions: TLSv1.0-TLSv1.3
. 2025-03-17 06:20:37.874 Local directory: default, Remote directory: /****/, Update: No, Cache: No
. 2025-03-17 06:20:37.874 Cache directory changes: No, Permanent: Yes
. 2025-03-17 06:20:37.874 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2025-03-17 06:20:37.874 DST mode: Unix
. 2025-03-17 06:20:37.874 Compression: No
. 2025-03-17 06:20:37.874 --------------------------------------------------------------------------
. 2025-03-17 06:20:37.910 HTTP session to https://*******:443 begins.
. 2025-03-17 06:20:37.912 ssl: SNI enabled by default.
. 2025-03-17 06:20:37.912 auth: Create for WWW-Authenticate
. 2025-03-17 06:20:37.912 Running pre_send hooks
. 2025-03-17 06:20:37.912 Sending request headers:
. 2025-03-17 06:20:37.912 OPTIONS /****/ HTTP/1.1
 
. 2025-03-17 06:20:37.912 User-Agent: WinSCP/6.3.7 neon/0.33.0
 
. 2025-03-17 06:20:37.912 Keep-Alive: 
 
. 2025-03-17 06:20:37.912 Connection: TE, Keep-Alive
 
. 2025-03-17 06:20:37.912 TE: trailers
 
. 2025-03-17 06:20:37.912 Host: *******
. 2025-03-17 06:20:37.912 Sending request-line and headers:
. 2025-03-17 06:20:37.912 Doing DNS lookup on *******...
. 2025-03-17 06:20:38.038 req: Connecting to ############:443
. 2025-03-17 06:20:38.085 Doing SSL negotiation.
. 2025-03-17 06:20:38.138 ssl: Verify callback @ 1 => 20
. 2025-03-17 06:20:38.138 ssl: Verify failures |= 8 => 8
. 2025-03-17 06:20:38.139 Chain depth: 2
. 2025-03-17 06:20:38.139 Identity match for '': bad
. 2025-03-17 06:20:38.139 Identity match for '': bad
. 2025-03-17 06:20:38.139 ssl: Match common name '*******' against '*******'
. 2025-03-17 06:20:38.139 Identity match for '*******': good
. 2025-03-17 06:20:38.139 Verifying certificate for "*******" with fingerprint ################### and 08 failures
. 2025-03-17 06:20:38.247 Certificate verified against Windows certificate store
. 2025-03-17 06:20:38.248 Using TLSv1.3, cipher TLSv1.3: TLS_AES_256_GCM_SHA384, 3072 bit RSA
. 2025-03-17 06:20:38.248 Request sent; retry is 0.
. 2025-03-17 06:20:38.294 ssl: Got OpenSSL error stack 0
. 2025-03-17 06:20:38.294 Aborted request (-5): Could not read status line
. 2025-03-17 06:20:38.294 sess: Closing connection.
. 2025-03-17 06:20:38.294 ssl: Shutdown state: not sent | not received.
. 2025-03-17 06:20:38.294 ssl: Sending closure.
. 2025-03-17 06:20:38.294 ssl: Got OpenSSL error stack 0
. 2025-03-17 06:20:38.294 sess: Connection closed.
. 2025-03-17 06:20:38.294 Request ends, status 0 class 0xx, error line:
. 2025-03-17 06:20:38.294 Could not read status line: Secure connection truncated
. 2025-03-17 06:20:38.294 Running destroy hooks.
. 2025-03-17 06:20:38.294 Request ends.
. 2025-03-17 06:20:38.294 sess: Destroying session.
* 2025-03-17 06:20:38.320 (EFatal) Could not read status line: Secure connection truncated
* 2025-03-17 06:20:38.320 Connection failed. 

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,852
Location:
Prague, Czechia

Re: WebDAV connection error

If you server accessible on the internet? Can you send me (at least privately) its hostname for testing? Is both --negotiate and --http1.1 needed? Wouldn't just one of them suffice?

Reply with quote

Pasha_ZZZ
Joined:
Posts:
1

Re: WebDAV connection error

martin wrote:

If you server accessible on the internet? Can you send me (at least privately) its hostname for testing?
Sent to email

martin wrote:

Is both --negotiate and --http1.1 needed? Wouldn't just one of them suffice?
Only --negotiate error:
curl: (92) HTTP/2 stream 3 was not closed cleanly: HTTP_1_1_REQUIRED (err 13)
Only --http1.1 error:
401 - Unauthorized: Access is denied due to invalid credentials.

Reply with quote

Advertisement

You can post new topics in this forum