emikulic / darkhttpd

When you need a web server in a hurry.
https://unix4lyfe.org/darkhttpd/
ISC License
1.03k stars 83 forks source link

PROPFIND / Read-Only WebDAV #35

Closed hhartzer closed 6 months ago

hhartzer commented 11 months ago

I think it would be interesting if darkhttpd could respond to the PROPFIND method. This would make it simpler to sync a webserver or whole directory than the loose directory listing structure, and would give the option to list files on the root as well.

I don't think this would be too complex to implement. I don't think it would require a XML library, either.

emikulic commented 6 months ago

I don't think I use WebDAV for anything. What's the use-case here? Which (client) software?

hhartzer commented 6 months ago

WebDAV would be a cleaner alternative to combing through directory listings. Things like Kodi can use WebDAV. There's a few clients, like davix and cadaver.

It would also allow for easier web scraping, even if there's a index.html in the way. So it should definitely be something, that if supported, would be turned on with a flag.

It'd basically just be a directory listing in XML for PROPFIND queries.

emikulic commented 6 months ago

IDK. If you feel strongly about it and it solves a real problem for you and you want to implement it, I'll merge it, but I won't be able to test it or maintain it.

hhartzer commented 6 months ago

I'm honestly not sure how strongly I feel about it. It seems to have pretty medium popularity. None in many circles and high in others. I'll look into it some and see if it seems worthy and trivial enough to implement.

emikulic commented 6 months ago

I'm not really looking to add features for the sake of features. :) I tend to let people merge stuff when it looks like they have a compelling use-case for it.

hhartzer commented 6 months ago

Absolutely! I agree.

I haven't seen this done many places, so it's mainly a curiousity at this point. I'll close this out for now and resurrect it if I find something compelling about WebDAV.