测试 REST framework JWT Auth 错误
Testing REST framework JWT Auth error
所以我试图测试 django restframework 身份验证令牌,但我 运行 在尝试检索令牌时遇到此错误。
Invoke-WebRequest : A parameter cannot be found that matches parameter name 'X'.
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
谁能给我解释一下这是什么意思,有谁知道解决方案吗
这是我在 cmd 中输入的内容:
curl -X POST -d "username=(username)&password=(password)" (the url to token)
谢谢
您似乎正试图在 PowerShell 中使用 curl
命令。如果是这种情况,您必须先安装它。请参阅 this post,了解如何在 Windows 中安装 cURL 并在 PowerShell 中使用它。
所以我试图测试 django restframework 身份验证令牌,但我 运行 在尝试检索令牌时遇到此错误。
Invoke-WebRequest : A parameter cannot be found that matches parameter name 'X'.
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
谁能给我解释一下这是什么意思,有谁知道解决方案吗
这是我在 cmd 中输入的内容:
curl -X POST -d "username=(username)&password=(password)" (the url to token)
谢谢
您似乎正试图在 PowerShell 中使用 curl
命令。如果是这种情况,您必须先安装它。请参阅 this post,了解如何在 Windows 中安装 cURL 并在 PowerShell 中使用它。