(1) Add 30sec timeout to avoid SSL hanging (2) Add checks against status code on POST/PUT calls