When trying for example send a text file using curl $ curl -F filedate=@something.log http://localhost:8080 You can see that there is still header info in the actual data, this needs to be stripped of, somehow related to [this](http://stackoverflow.com/questions/8466703/httplistener-and-file-upload).