git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b553d99
)
- fail with non-zero exit code on e.g. 404 errors
author
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 12 Jan 2007 00:07:37 +0000
(
00:07
+0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 12 Jan 2007 00:07:37 +0000
(
00:07
+0000)
curlwrapper.py
patch
|
blob
|
history
diff --git
a/curlwrapper.py
b/curlwrapper.py
index
97a35a3
..
462c6ed
100644
(file)
--- a/
curlwrapper.py
+++ b/
curlwrapper.py
@@
-4,7
+4,7
@@
from subprocess import PIPE, Popen
class CurlException(Exception): pass
def retrieve(url, cacert=None, postdata=None, timeout=300):
- options = ('/usr/bin/curl',)
+ options = ('/usr/bin/curl',
'--fail', '--silent'
)
if cacert: options += ('--cacert', cacert)
if postdata: options += ('--data', '@-')
if timeout: options += ('--max-time', str(timeout))