summaryrefslogtreecommitdiffstats
path: root/cmso-robot/robot/locallibrary/cmsoUtils/CurlLibrary.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmso-robot/robot/locallibrary/cmsoUtils/CurlLibrary.py')
-rw-r--r--cmso-robot/robot/locallibrary/cmsoUtils/CurlLibrary.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmso-robot/robot/locallibrary/cmsoUtils/CurlLibrary.py b/cmso-robot/robot/locallibrary/cmsoUtils/CurlLibrary.py
new file mode 100644
index 0000000..44c6229
--- /dev/null
+++ b/cmso-robot/robot/locallibrary/cmsoUtils/CurlLibrary.py
@@ -0,0 +1,13 @@
+from curl import Curl
+
+class CurlLibrary:
+
+
+ def get_zip(self, url, filename):
+ fp = open(filename, "wb")
+ c = Curl()
+ c.get(url, )
+ c.set_option(c.WRITEDATA, fp)
+ c.perform()
+ c.close()
+ fp.close() \ No newline at end of file