Have you read API documentation? It accepts application/x-www-form-urlencoded
media type.
Also, even if it accepted JSON, your JSON is invalid. Keys in JSON format always need to be in double-quotes.
Hello Anton. Thanks for your fast reply. I change the media type but not work
Request
HEADERS
Accept: */*
Accept-Encoding: gzip, deflate
Content-Length: 63
Content-Type: application/x-www-form-urlencoded
User-Agent: runscope/0.1
BODY
{"email": "myemail", "password":"mypassword" }
Responde
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Origin: *
Content-Length: 91
Content-Type: application/json
Date: Sun, 25 Feb 2018 01:48:13 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Server: Jetty(9.2.22.v20170606)
Set-Cookie: JSESSIONID=fi1nu3e5g2cdnkxgyesu2z60;Path=/api
BODY
NullPointerException (DataManager:306 < PermissionsManager:412 < SessionResource:103 < ...)
I would recommend you to read about different media types and what they mean. There is plenty of documentation online.
Please help me, i wanna to know where is the mistake and right way yo make this call... Please
please do not be offended but I can pay you for this. tell me what the price could be
Send an email to support address if you are interested in paid support.
Hello, please help me, i'm working in a app for traccar and i cant login using API
I'm using this site for test API: https://www.hurl.it/
This is the URL
This is my POST request:
HEADERS
BODY
This is the response
HEADERS
BODY