Error in cURL request: Recv failure: Connection reset by peer