Re: request.post in If condition

2017-10-30 Thread sourav voip
quests.post(url, auth=(user, pwd), headers=headers ,data="{\"assignment_group\":\Hardware\",\"short_description\":\"Threshold Warning\"}") print "FREE SPACE WARNING: '/' is %.2f%% full" % (float(diskUtil)) sys.exit

request.post in If condition

2017-10-30 Thread sourav voip
Hi All, I'm trying to hit request.post with condition using if-else as below... I;m posting the full script here...as I've tried declaring post url details tested with multiple places. -- https://mail.python.org/mailman/listinfo/python-list