Javascript 我可以从React Native中运行raw CURL命令吗?

Javascript 我可以从React Native中运行raw CURL命令吗?,javascript,react-native,http,curl,http2,Javascript,React Native,Http,Curl,Http2,尝试从我们的React本机应用程序运行原始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 s

尝试从我们的React本机应用程序运行原始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程序。

谢谢,我熟悉axios,但它不允许您指定与原始curl请求相同的命令