Hi, Has anyone looked at implementing the PUT method in uhttpd? I'm interested in this for some embedded devices that fetch firmware updates using GET, then upload log files using PUT.
The POST request body parsing for chunked encoding and 'expect: 100-continue' is a big chunk that can be reused, I think. With a few small changes to the core to support parsing PUT in the firstline, the file writing can be implemented as a plugin so it would keep the core clean and it can be kept out of the default build to keep the binary small. But I'm concerned about policy enforcement - overlaps between readable/writable directories. I would be interested in "dropbox" semantics (write-only). After a file is uploaded, outside of uhttpd, maybe in some cron, I would flip some mode bits to make the file read-only to uhttpd and start serving it. I also need read-write semantics on certain paths for devices to backup their configs. I think this might get a bit hairy since uhttpd core doesn't really have path-oriented policy like this. What other use cases/requirements might there be for PUT in uhttpd? Catalin _______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-users
