Originally Posted By: Dalla
Can you try using Wireshark or similar tool to make sure a post request is generated? To be honest it looks like a get request. The error page you get as a response is what you get also if you put that address in your browser
https://demo-api.ig.com/gateway/deal/session

On the other hand, if I try a POST with e.g. invalid credentials, I get a 400 BAD REQUEST
with a JSON body as response.
{
"errorCode": "error.security.invalid-details"
}


Yes, seems to be a POST request.


- Http: Request, POST /gateway/deal/session
Command: POST
- URI: /gateway/deal/session
Location: /gateway/deal/session
ProtocolVersion: HTTP/1.1
Host: demo-api.ig.com
Accept: */*
- ContentType: application/json; charset=UTF-8
+ MediaType: application/json; charset=UTF-8
Accept: application/json; charset=UTF-8
VERSION: 2
X-IG-API-KEY: e6329bb0b1e25e9bb3b57c4cd3070a2a95a60d7f
ContentLength: 52
HeaderEnd: CRLF
- payload: HttpContentType = application/json; charset=UTF-8
HTTPPayloadLine: {"identifier": "xxx", "password": "xxx"}