How To Use 0x0.st

0x0.st is a site that lets me upload photos. The syntax is pretty esoteric, so here are some examples.

NOTE: May as well always use the -v option to show headers – so I can use the X-Token field to delete the photo afterwards if I want to.

Upload an image:

curl -v -F'file=@yourfile.png' https://0x0.st/

Expire the image in 72 hours

curl -v -F'file=@yourfile.png' -Fexpires=72 https://0x0.st/

To delete the file immediately:

curl -v -Ftoken=token_here -Fdelete= https://0x0.st/yourfile.png

To change the expiration date (see above):

curl -v -Ftoken=token_here -Fexpires=3 https://0x0.st/yourfile.png
tips/how_to_use_0x0.st.txt · Last modified: 2023-11-15 15:57 by snork
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki