m5nr api: support both POST data and form