tahoe-get.py: the first, most primitive command-line client

This commit is contained in:
Zooko O'Whielacronx 2007-07-09 18:19:53 -07:00
parent dce1dc2730
commit 8769f2eeba

View File

@ -0,0 +1,15 @@
#!/usr/bin/env python
import sys, urllib
def GET(url):
f = urllib.urlopen(url)
sys.stdout.write(f.read())
vfname = sys.argv[1]
base = "http://tahoebs1.allmydata.com:8011/"
base += "vdrive/global/"
url = base + vfname
GET(url)