I've seen webserver examples, but all stop after implementing a simple GET handler. Not enough. I need to handle a POST at some port 12345 and store the data in a file.
There is also much confusion:
- Synapse has some documentation, can do an upload (but not receive one, how?). Seems somewhat abandoned.
- TFPHTTPServer, apparently native but totally undocumented?
- Indy: lost between versions?
So... I have no idea how to do it.
I have a preference for Synapse as I already use it to access Amazon S3.
I don't even have to preserve the filename, the content of the file is enough. Filesizes can be up to a few MB.
Alternatively, any other method to send a file over a (local) network, to some IP, would be fine also. EDIT: for example usings sockets directly??
I'm lost at this. Any pointers appreciated.
EDIT: needs to be cross-platform (initially Linux)