Make curl calls actually work