Hello,
After logging in and get account information, account funds and current orders without error, I am trying to use the REST endpoint https://api.betfair.com/exchange/bet...istEventTypes/ with a WebClient / C# and pass an empty {"filter" : { } } post data.
What I am getting is always an exception with a detail: "Header name is invalid"
The headers I am sending are:
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Content-Type", "text/json");
request.Headers.Add("X-Authentication", <token>);
request.Headers.Add("X-Application", <api-key>);
I tried several variations of header requests like content-type: application/json and not sending some of the others but the exception is always the same.
I am thinking that the POST I have to do needs something different because what it works so far didn't have any data sent.
All the samples I could find in the documentation and here in the forum are using the NG endpoint
Any clues?
After logging in and get account information, account funds and current orders without error, I am trying to use the REST endpoint https://api.betfair.com/exchange/bet...istEventTypes/ with a WebClient / C# and pass an empty {"filter" : { } } post data.
What I am getting is always an exception with a detail: "Header name is invalid"
The headers I am sending are:
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Content-Type", "text/json");
request.Headers.Add("X-Authentication", <token>);
request.Headers.Add("X-Application", <api-key>);
I tried several variations of header requests like content-type: application/json and not sending some of the others but the exception is always the same.
I am thinking that the POST I have to do needs something different because what it works so far didn't have any data sent.
All the samples I could find in the documentation and here in the forum are using the NG endpoint
Any clues?



Comment