]>
git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - www/uriel_test.py
6 import simplejson
as json
11 for arg
in sys
.argv
[1:]:
17 item
, value
= arg
.split("=")
19 print "Cannot split arg: ", arg
22 value
= value
.strip("\"")
27 print "No data to send."
30 request
= { "id" : "null",
31 "method" : "uriel_send_info",
32 "params" : json
.dumps(data
), }
34 g
= urllib
.urlopen("http://www.ipfire.org/rpc.py", data
=urllib
.urlencode(request
))