appending multiple querystring variables with curl

前端 未结 1 2037
我在风中等你
我在风中等你 2020-12-29 22:06

I keep getting a 401 response when I try to use authentication = ApiKeyAuthentication() in my ModelResource. I looked at Django Tastypie: How to Authenticate with API Key an

相关标签:
1条回答
  • 2020-12-29 22:31

    Typing & in the command line means run the preceding command in the background (thanks @Maccesch), because of this anything after the & is being treated as a new command.

    Try wrapping the url in quotes.

    curl --dump-header - "http://127.0.0.1:8000/api/v1/spot/8/?username=darren&api_key=9999d318e43b8055ae32d011be5b045ad61dad50"

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