curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Authentication Problem

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 4 Nov 2018 18:00:48 +0100 (CET)

On Sun, 4 Nov 2018, Mathias Varga wrote:

> curl -d -H "Accept: application/json"
> {"id":"1","method":"authenticate","params":{"user":"USER","password":"PASSWORD","client":"CLIENT",

This command line syntax is totally broken. Move around the first words to
instead become:

    curl -H "Accept: application/json" -d

... and then the whole json thing + URL.

-- 
  / daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-11-04