Re: [lftp] WebDAV delete

2014-12-03 Thread Paul Rankin

Lars Viklund z...@acc.umu.se writes:

 On Wed, Dec 03, 2014 at 04:30:53PM +1000, Paul Rankin wrote:
 When attempting to delete a file on a WebDAV connection to a server I
 get:
 
 Operation not supported: 400 Bad Request (DELETE)
 
 The delete operation works if I use FTP instead.
 
 Is this a limitation of the current WebDAV implementation, or something
 going wrong with the server?

 What lftp version is this?

4.6.0 via homebrew

 What kind of WebDAV backend are you using, and are you authorized to
 perform this action?

I'm using FastMail's file storage. They provide WebDAV and FTP/S access.

The files are -rw-r--r-- so I ought to be able to delete right? I can
delete via FTP and via OS X's Finder WebDAV client, all using the same
server/username/password, so I gotta assume I'm authorised.

Sorry I don't know anything more about the server backend.

 On my site we use Jetty and Milton, and lftp 4.3.3 can DELETE fine.

 lftp example.com:/ops/zao rm foo.s
  dns cache hit
  Connecting to example.com (10.0.0.1) port 443
  Sending request...
 --- DELETE /ops/zao/foo.s HTTP/1.1
 --- Host: example.com
 --- User-Agent: lftp/4.3.3
 --- Accept: */*
 --- Depth: 0
 --- Connection: keep-alive
 ---
 ***snip certificates***
 --- HTTP/1.1 204 No Content
 --- Server: milton.io-2.0.0
 --- Date: Wed, 03 Dec 2014 07:43:17 GMT
 --- Accept-Ranges: bytes
 --- ETag: A73292177EA5491A981A6C6C6E7AA862_253383220
 ---
  Receiving body...
 rm ok, `foo.s' removed
 lftp example.com:/ops/zao

How do you get this level of verbosity within interactive mode? Maybe
that could help me troubleshoot.

Thanks.
___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] WebDAV delete

2014-12-03 Thread Lars Viklund
On Wed, Dec 03, 2014 at 06:41:40PM +1000, Paul Rankin wrote:
 How do you get this level of verbosity within interactive mode? Maybe
 that could help me troubleshoot.

lftp has a 'debug' command taking a numeric parameter indicating how
spammy it should be. The results listed was from 'debug 10'.

You may want to tcpdump/wireshark the traffic and see the actual
request, see if it looks truly malformed, or if it's just the server
being picky?

-- 
Lars Viklund | z...@acc.umu.se
___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] WebDAV delete

2014-12-03 Thread Paul Rankin

Lars Viklund z...@acc.umu.se writes:

 lftp has a 'debug' command taking a numeric parameter indicating how
 spammy it should be. The results listed was from 'debug 10'.

This is what I get with debug 10

lftp user#fastmail@myfiles.messagingengine.com:/ rm foo
 Sending request...
--- DELETE /foo HTTP/1.1
--- Host: myfiles.messagingengine.com
--- User-Agent: lftp/4.6.0
--- Accept: */*
--- Depth: 0
--- Authorization: Basic ==
--- Connection: keep-alive
--- 
--- HTTP/1.1 400 Bad Request   
--- Server: nginx
 unhandled header line `Server'
--- Date: Wed, 03 Dec 2014 10:26:51 GMT
 unhandled header line `Date'
--- Content-Type: text/html; charset=iso-8859-1
--- Content-Length: 305
--- Connection: keep-alive
--- X-Request-Id: web6-2781299-1417602411-82
 unhandled header line `X-Request-Id'
--- X-Request-Id: web6-2781299-1417602411-83
 unhandled header line `X-Request-Id'
--- 
--* 400 Bad Request
--* Bad Request
--* Your browser sent a request that this server could not understand.
--* Apache Server at myfiles.messagingengine.com Port 8080
rm: Operation not supported: 400 Bad Request (DELETE)

(Auth info changed.)

Any ideas from that...?
___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


[lftp] WebDAV delete

2014-12-02 Thread Paul Rankin
When attempting to delete a file on a WebDAV connection to a server I
get:

Operation not supported: 400 Bad Request (DELETE)

The delete operation works if I use FTP instead.

Is this a limitation of the current WebDAV implementation, or something
going wrong with the server?

Thanks,

-- 
Paul W. Rankin
http://www.paulwrankin.com

Before printing this email please take a moment to think about the
environment. Just stop and think about it. Think about the last time you
were walking alone in a forest, how you felt at peace, how a wave of
clarity seemed to overcome you and you had to stop and reevaluate your
life, what you're doing with the limited time you have here. Damn, you
thought, life is so precious. I should really be doing __. Are you
doing that now? Why not? Go on, pick up your computer and throw it out
the window! It'll be great, like that scene from Network where everyone
starts yelling I'M MAD AS HELL AND I'M NOT GOING TO TAKE THIS ANY
MORE. That'll be you, but it will be real. Now's your moment.
___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] WebDAV delete

2014-12-02 Thread Lars Viklund
On Wed, Dec 03, 2014 at 04:30:53PM +1000, Paul Rankin wrote:
 When attempting to delete a file on a WebDAV connection to a server I
 get:
 
 Operation not supported: 400 Bad Request (DELETE)
 
 The delete operation works if I use FTP instead.
 
 Is this a limitation of the current WebDAV implementation, or something
 going wrong with the server?

What lftp version is this?
What kind of WebDAV backend are you using, and are you authorized to
perform this action?

On my site we use Jetty and Milton, and lftp 4.3.3 can DELETE fine.

lftp example.com:/ops/zao rm foo.s
 dns cache hit
 Connecting to example.com (10.0.0.1) port 443
 Sending request...
--- DELETE /ops/zao/foo.s HTTP/1.1
--- Host: example.com
--- User-Agent: lftp/4.3.3
--- Accept: */*
--- Depth: 0
--- Connection: keep-alive
---
***snip certificates***
--- HTTP/1.1 204 No Content
--- Server: milton.io-2.0.0
--- Date: Wed, 03 Dec 2014 07:43:17 GMT
--- Accept-Ranges: bytes
--- ETag: A73292177EA5491A981A6C6C6E7AA862_253383220
---
 Receiving body...
rm ok, `foo.s' removed
lftp example.com:/ops/zao

-- 
Lars Viklund | z...@acc.umu.se
___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp