If clients sends POST /test, it notifies the server that it is available for receive redirections from file 'test'. Test it with wget: wget --post-data '' http://localhost:9999/TEST -O /dev/null |
||
---|---|---|
src | ||
tests | ||
.gitignore | ||
Makefile.am | ||
README | ||
configure.ac |
README
1) Compile: make 2) Run (serving files in the local folder): ./tiptorrent 3) Generate test file dd if=/dev/random of=TEST ... ctrl-c whenever you like ... md5sum TEST 4) Test (on a different terminal) wget http://localhost:9999/TEST Now check that downloaded file is the same: md5sum TEST