[尝试从我们的React Native应用运行原始cURL(需要指定HTTP1.1连接)。这可以从React Native内完成吗?
curl -X POST 'https://example.com/Authentication/connect/token' --http1.1 -H 'Content-Type: application/x-www-form-urlencoded
您可以安装axios
并在React Native中使用它。
不,你不能那样做。因为curl
是UNIX / Linux Shell程序。