summaryrefslogtreecommitdiffstats
path: root/pyLoadCli.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-11-30 17:47:42 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-11-30 17:47:42 +0100
commitf3c2e597ebb63094c43ec39acb67a23a1cc2c141 (patch)
tree07b4fbfe3f71045d765639e0fd08477efe8e65f1 /pyLoadCli.py
parentCleaned XMLRPC in Core (diff)
downloadpyload-f3c2e597ebb63094c43ec39acb67a23a1cc2c141.tar.xz
added xmlrpc auth without ssl
Diffstat (limited to 'pyLoadCli.py')
-rwxr-xr-xpyLoadCli.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pyLoadCli.py b/pyLoadCli.py
index 2a03c8e59..2d38ab4ca 100755
--- a/pyLoadCli.py
+++ b/pyLoadCli.py
@@ -250,7 +250,11 @@ if __name__=='__main__':
config = ConfigParser.SafeConfigParser()
config.read('config')
- server_url = "https://%s:%s@%s:%s/" % (
+ ssl = ""
+ if config.get("ssl", "activated") == "True":
+ ssl = "s"
+ server_url = "http%s://%s:%s@%s:%s/" % (
+ ssl,
config.get("remote", "username"),
config.get("remote", "password"),
config.get("remote", "listenaddr"),
@@ -260,7 +264,7 @@ if __name__=='__main__':
if len(extraparams) == 1:
server_url = sys.argv[1]
else:
- print "URL scheme: https://user:password@host:port/"
+ print "URL scheme: http[s]://user:password@host:port/"
server_url = raw_input("URL: ")
curses.wrapper(main)