CRUD thing were you can put strings up.
Usage: cruddyString (inifile) (preload)
CruddyString (CS) hosts an HTTP server on port 8080
To create post data to the root directory '/'. The input field is 'inputdata' set that to whatever you want to upload. CS will return a number which corresponds to the index of the resource you uploaded.
To read data send a get request to the directory '/i', where i corresponds to the index of the resource. CS will return the resource if it exists or if it does not exist it will return 400 Bad Request.
Send a PATCH request to the directory '/i' where i is the index of the resource you wish to update. The input field is 'inputdata', same as Create. Update will respond with the old data before the rewrite.
Send a DELETE request tot the directory '/i' where i is the index of the resource you wish to update. Delete will respond with the old data that was deleted.
An ini file can be optionally used.
[memory]
maxresourcesize=x
maxnumresources=y
Replace x with the max resource size and y with the max number of resources
Put the path to the ini file in the first argument.
You can preload resources to CS with a text file. Supply the path to this text file in the second argument.
Note: You must use an ini file if you wish to preload.
CS will read the file line by line adding each line as a resource.