Discussion:
Authentication Problem
Mathias Varga
2018-11-04 13:48:43 UTC
Permalink
*When i use this Code to get authenticated : *
curl -d -H "Accept: application/json"
{"id":"1","method":"authenticate","params":{"user":"USER","password":"PASSWORD","client":"CLIENT",
"?school":"htl-donaustadt"},"jsonrpc":"2.0"}
https://melete.webuntis.com/WebUntis/jsonrpc.do?school=htl-donaustadt
--insecure
*i get this error message :*
curl: (3) [globbing] unmatched close brace/bracket in column 27
{"jsonrpc":"2.0","id":null,"error":{"code":-32700,"message":"Parse error:
No content to map due to end-of-input\n at [Source:
***@102d63fc; line: 1, column:
0]"}}

Help would be very nice
Thanks a lot
David Colter
2018-11-04 15:51:07 UTC
Permalink
Guten tag, Mathais.
"client":"CLIENT", "?school":"htl-
It looks like you have a space in the middle between client and ?school. Could that be causing the error?

David

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https:
Daniel Stenberg
2018-11-04 17:00:48 UTC
Permalink
Post by Mathias Varga
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
Etiquett
Loading...