Git Product home page Git Product logo

webdavserver's Introduction

WebDav server for POSIX-compatible systems

This package implements a simple WebDav server for systems with a POSIX-compatible file system storage. The server has limited functionality and primarily targets embedded platforms with limited resources.

Compatibility

Web server

The code has all parts that are specific to the http request and response factored out through an abstact base class. Examples are provided for the ESPIDF http server as well as libsoup.

File system

A POSIX compatible file system must be provided. In particular, the code uses the following functions:

    * `fopen()`, `fclose()`
    * `fread()`, `fwrite()`
    * `stat()`
    * `access()`
    * `opendir()`, `closedir()`
    * `unlink()`
    * `rename()`

Current limitations

  • No support for locking/unlocking
  • No support for property writing

Installation

As ESP-IDF component

In your project repository, add this component as sub-module:

git submodule init
git submodule add https://github.com/zonque/WebDavServer.git components/webdav

License

LGPL-3, see LICENSE file.

webdavserver's People

Contributors

zonque avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

eds2code

webdavserver's Issues

Not a valid DAV response

Screen Shot 2022-12-15 at 2 50 46 PM

I'm trying to use this in a project with an SD card. I've added some debug code and can see that sendPropResponse() is sending the data in chunks. I get the error in the attached screenshot though. In wireshark it looks like the last chunk is never sent. Even though I'm seeing it being sent in the serial monitor while running. I also tried just sending one small chunk and calling closeChunk() and I don't see any of the data come across in wireshark. This leads me to believe that the buffer is not being flushed when httpd_resp_send_chunk() in esp-idf is being called.

I'm using esp-idf 5.1.0 btw. Can someone confirm that things work for them? Or that they are having the same issue?
I'd really like to get this working. Great job on the code. It is very well thought out and easy to follow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.