Rewriting mtasa cURL from scratch