Curl error: TCP connection reset by peer