errnoh / tarserver

Webserver that is able to tar and gzip files you send it.

Repository from Github https://github.comerrnoh/tarserverRepository from Github https://github.comerrnoh/tarserver

tarserver

Because someone mentioned web servers that would serve gzipped tar files..

Usage:

curl -F file=@file1.go -F file=@file2.txt http://127.0.0.1:8080/tar/gz > tarredstuff.tar.gz

..or just send files as MIME multipart ( RFC 2046 ) with some other software..

..or don't send files at all, just send some random data (though skip /tar/ if you do that)..

Supported functions:

  • /tar - tar files that are sent as MIME multipart form.
  • /gzip or /gz/ - gzip data
  • /zlib - zlib data
  • /echo - echo server

Paths can be combined:

  • /tar/gz - first tar the files and then gzip them

TODO:

  • https support
  • proper error handling
  • return codes

About

Webserver that is able to tar and gzip files you send it.

License:Other


Languages

Language:Go 100.0%