我可以在React Native中运行原始的CURL命令吗?

问题描述 投票:0回答:1

[尝试从我们的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
javascript react-native http curl http2
1个回答
0
投票

您可以安装axios并在React Native中使用它。


0
投票

不,你不能那样做。因为curl是UNIX / Linux Shell程序。

© www.soinside.com 2019 - 2024. All rights reserved.