fix timeout and escape body for curl output