Explorar el Código

Add front-end implementation suggestions to README.md

master
Said Achmiz hace 3 años
padre
commit
e25ce198cd
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      README.md

+ 2
- 0
README.md Ver fichero



The response to the POST request will contain the URL of the newly-created paste. You can append `/raw` to that URL to view the raw text of the paste. The response to the POST request will contain the URL of the newly-created paste. You can append `/raw` to that URL to view the raw text of the paste.


Setting up a mechanism for posting pastes is currently left as an exercise for the reader. (There are many ways to do this: one could have a simple shell script that takes text from `stdin` and uses `curl` to issue a POST request to the script URL; one could put together something like a Cocoa Service with Apple’s Automator, to allow posting text from any application as a paste; one could even have some sort of web form—backed by another PHP script, running on the same server—to allow posting of pastes from the web. Note that if you opt for the last option, you should take care to secure the posting form somehow, lest your pastebin server be flooded by all manner of junk…)

## Notes ## Notes


You can, of course, change the path from `/textfiles/` to anything else, modifying the scripts, config files, etc. in the obvious manner. You can, of course, change the path from `/textfiles/` to anything else, modifying the scripts, config files, etc. in the obvious manner.

Cargando…
Cancelar
Guardar