“Positional Parameter” error when posting data with cURL

前端 未结 2 499
挽巷
挽巷 2021-02-05 16:29

If I were to issue the command without the --data \"...\", it works just fine. I\'ve tried Google and I can\'t find any answers to this problem. Following the direc

相关标签:
2条回答
  • 2021-02-05 17:25

    Your problem is answered here: Running cURL on 64 bit Windows

    You're not running curl you're running something called Invoke-WebRequest, which is aliased to curl. You need to unalias curl, download and install curl (if you haven't already).

    0 讨论(0)
  • 2021-02-05 17:33

    Remove-item alias:curl

    this will be happen to curl easily!!

    TRY AND FUN.. AND ALSO curl can make your own SHORTEN URL , so Don't need to work with 3rd parties.. :D

    0 讨论(0)
提交回复
热议问题