cURL error: TCP connection reset by peer