Webdav mystery -- 301 error on a valid address
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 86
- Joined: 2004-05-02, 01:50 UTC
Webdav mystery -- 301 error on a valid address
Accessed through Firefox as a web page--works fine but my objective is easy file uploading, ideally a script.
Accessed via windows--login never succeeds. (But from what I read the Windows client has problems.)
Accessed via TotalCommander with the WebDav plugin--"Error: 301 Moved Permanently", next line "Disconnected".
Is this something on my end or is it their problem?
Accessed via windows--login never succeeds. (But from what I read the Windows client has problems.)
Accessed via TotalCommander with the WebDav plugin--"Error: 301 Moved Permanently", next line "Disconnected".
Is this something on my end or is it their problem?
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Please enable logging in Configuration - Options - FTP. This also logs plugins. Then enable detailed logs in the WebDAV connection. It should show you where you are being redirected.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 86
- Joined: 2004-05-02, 01:50 UTC
CONNECT \Neocitiesghisler(Author) wrote:Please enable logging in Configuration - Options - FTP. This also logs plugins. Then enable detailed logs in the WebDAV connection. It should show you where you are being redirected.
=================
Get dir: /webdav
HTTP error: Error 12168, FormatMessage error 317
PROPFIND /webdav/ HTTP/1.1
Error: 301 Moved Permanently
Disconnected
however, entering the same URL into Firefox produces what's actually there:
/
Name Size Type Last Modified
Parent Directory
index.html 30.6K text/html Wed, 31 Dec 2014 16:56:58 GMT
not_found.html 600B text/html Mon, 12 Aug 2013 18:56:35 GMT
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
"Moved Permantently" means that the entered URL is wrong. Error 12168 occurs when there is a request which cannot be directed automatically. It could be a redirect from http to https. Try checking the option "Secure connection (via SSL)" in the connection settings.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 86
- Joined: 2004-05-02, 01:50 UTC
Makes sense, it's a HTTPS URL....that made a difference. Now I get a progress bar for some seconds (more time than would be needed to download the whole site) and then it gives:ghisler(Author) wrote:"Moved Permantently" means that the entered URL is wrong. Error 12168 occurs when there is a request which cannot be directed automatically. It could be a redirect from http to https. Try checking the option "Secure connection (via SSL)" in the connection settings.
Error 400: Bad Request
Disconnected
Trying it in Firefox still basically instantly brings up the list of files.
I get exactly the same result (and yes, there's a redirect from http to https).Loren Pechtel wrote:Makes sense, it's a HTTPS URL....that made a difference. Now I get a progress bar for some seconds (more time than would be needed to download the whole site) and then it gives:ghisler(Author) wrote:"Moved Permantently" means that the entered URL is wrong. Error 12168 occurs when there is a request which cannot be directed automatically. It could be a redirect from http to https. Try checking the option "Secure connection (via SSL)" in the connection settings.
Error 400: Bad Request
Disconnected
Trying it in Firefox still basically instantly brings up the list of files.
Connecting to: https://www.genesismud.org/webdav/
entered as www.genesismud.org/webdav/ with the SSL tick box on.
Here's the detailed log:
CONNECT \Quick connection
=================
Get dir: /webdav
PROPFIND /webdav/ HTTP/1.1
Depth: 1
Content-Type: text/xml; charset="utf-8"
User-Agent: ezdavplugin/2.6 TotalCommander/8.5 (Windows/7; en_EN)
Host: www.genesismud.org
Content-Length: 0
Connection: Keep-Alive
Cache-Control: no-cache
******Received headers
HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Connection: keep-alive
Status: 400 Bad Request
X-Powered-By: Phusion Passenger 4.0.57
Date: Mon, 05 Jan 2015 18:47:17 GMT
Server: nginx/1.6.2 + Phusion Passenger 4.0.57
Error: 400 Bad Request
PROPFIND /webdav/ HTTP/1.1
Depth: 1
Content-Type: text/xml; charset="utf-8"
User-Agent: ezdavplugin/2.6 TotalCommander/8.5 (Windows/7; en_EN)
Host: www.genesismud.org
Content-Length: 0
Connection: Keep-Alive
Cache-Control: no-cache
******Received headers
HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Connection: keep-alive
Status: 400 Bad Request
X-Powered-By: Phusion Passenger 4.0.57
Date: Mon, 05 Jan 2015 18:47:17 GMT
Server: nginx/1.6.2 + Phusion Passenger 4.0.57
Error: 400 Bad Request
Disconnected
-
- Junior Member
- Posts: 86
- Joined: 2004-05-02, 01:50 UTC
But now that I check the SSL there shouldn't be a redirect. I'm getting:Mercade wrote:I get exactly the same result (and yes, there's a redirect from http to https).Loren Pechtel wrote:Makes sense, it's a HTTPS URL....that made a difference. Now I get a progress bar for some seconds (more time than would be needed to download the whole site) and then it gives:ghisler(Author) wrote:"Moved Permantently" means that the entered URL is wrong. Error 12168 occurs when there is a request which cannot be directed automatically. It could be a redirect from http to https. Try checking the option "Secure connection (via SSL)" in the connection settings.
Error 400: Bad Request
Disconnected
Trying it in Firefox still basically instantly brings up the list of files.
Connecting to: https://www.genesismud.org/webdav/
entered as www.genesismud.org/webdav/ with the SSL tick box on.
Here's the detailed log:CONNECT \Quick connection
=================
Get dir: /webdav
PROPFIND /webdav/ HTTP/1.1
Depth: 1
Content-Type: text/xml; charset="utf-8"
User-Agent: ezdavplugin/2.6 TotalCommander/8.5 (Windows/7; en_EN)
Host: www.genesismud.org
Content-Length: 0
Connection: Keep-Alive
Cache-Control: no-cache
******Received headers
HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Connection: keep-alive
Status: 400 Bad Request
X-Powered-By: Phusion Passenger 4.0.57
Date: Mon, 05 Jan 2015 18:47:17 GMT
Server: nginx/1.6.2 + Phusion Passenger 4.0.57
Error: 400 Bad Request
PROPFIND /webdav/ HTTP/1.1
Depth: 1
Content-Type: text/xml; charset="utf-8"
User-Agent: ezdavplugin/2.6 TotalCommander/8.5 (Windows/7; en_EN)
Host: www.genesismud.org
Content-Length: 0
Connection: Keep-Alive
Cache-Control: no-cache
******Received headers
HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Connection: keep-alive
Status: 400 Bad Request
X-Powered-By: Phusion Passenger 4.0.57
Date: Mon, 05 Jan 2015 18:47:17 GMT
Server: nginx/1.6.2 + Phusion Passenger 4.0.57
Error: 400 Bad Request
Disconnected
CONNECT \Neocities
=================
Get dir: /webdav
PROPFIND /webdav/ HTTP/1.1
Error: 400 Bad Request
PROPFIND /webdav/ HTTP/1.1
Error: 400 Bad Request
Disconnected
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
400 Bad Request seems to indicate that the WebDAV-specific command PROPFIND isn't supported by the server. If you go there with a Web browser, it doesn't use PROPFIND to get the list of files, it uses GET.
Maybe you need to allow PROPFIND via .htaccess. If you have something like
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
you need to change it to
<Limit GET POST PROPFIND DELETE>
order deny,allow
deny from all
allow from all
</Limit>
Maybe you need to allow PROPFIND via .htaccess. If you have something like
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
you need to change it to
<Limit GET POST PROPFIND DELETE>
order deny,allow
deny from all
allow from all
</Limit>
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 86
- Joined: 2004-05-02, 01:50 UTC
I don't have that sort of control.ghisler(Author) wrote:400 Bad Request seems to indicate that the WebDAV-specific command PROPFIND isn't supported by the server. If you go there with a Web browser, it doesn't use PROPFIND to get the list of files, it uses GET.
Maybe you need to allow PROPFIND via .htaccess. If you have something like
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
you need to change it to
<Limit GET POST PROPFIND DELETE>
order deny,allow
deny from all
allow from all
</Limit>
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
If you cannot enable WebDAV on your server, then you cannot access it with a WebDAV client, it's that simple.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 86
- Joined: 2004-05-02, 01:50 UTC
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Well, apparently it's not, otherwise you wouldn't get an error when TC tries to call PROPFIND...
You can try to create a new network connection in Explorer - if that works, you can also use it in TC.
You can try to create a new network connection in Explorer - if that works, you can also use it in TC.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 86
- Joined: 2004-05-02, 01:50 UTC
I was trying TC because Explorer didn't like it. Apparently the Webdav implementation on the other end has some problems.ghisler(Author) wrote:Well, apparently it's not, otherwise you wouldn't get an error when TC tries to call PROPFIND...
You can try to create a new network connection in Explorer - if that works, you can also use it in TC.
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Could you ask your provider what WebDAV client they recommend? And then try to access the server with that client? There probably IS a problem on the server...
One more thing: If the server is using CPanel, the WebDAV server will listen on port 2078. You will have to enter it like this
www.yourservername.com:2078/subdir
One more thing: If the server is using CPanel, the WebDAV server will listen on port 2078. You will have to enter it like this
www.yourservername.com:2078/subdir
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 86
- Joined: 2004-05-02, 01:50 UTC
I'll drop them a line and see what's up.ghisler(Author) wrote:Could you ask your provider what WebDAV client they recommend? And then try to access the server with that client? There probably IS a problem on the server...
One more thing: If the server is using CPanel, the WebDAV server will listen on port 2078. You will have to enter it like this
www.yourservername.com:2078/subdir