buffer = StringIO()
c = pycurl.Curl()
+ if is_debug():
+ c.setopt(pycurl.VERBOSE, 1)
url = scheme + '://' + beHost + ':' + bePort + '/sdc2/rest/v1/catalog/upload/multipart'
if updateversion != None:
#c.setopt(c.WRITEFUNCTION, lambda x: None)
c.setopt(c.WRITEFUNCTION, buffer.write)
+
#print("before perform")
res = c.perform()