You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
275 B
Python

13 years ago
import sys,base64
if len(sys.argv) < 3:
print ("""\
Usage: url.py cap filename
cap = Tahoe-LAFS readcap
filename = Actual filename of the file
""")
else:
print "http://tahoe-gateway.cryto.net:3719/download/" + base64.urlsafe_b64encode(sys.argv[1]) + "/" + sys.argv[2]