Traffic Api - Incidents - Java - POST method not supported?

hi,

I am trying to execute a https POST request to the Traffic API, incidentDetails. This POST request was working correctly up until March 2020. Now in April this POST requests are failing with an error: https response code 411, Content-Length is missing

If I change it to a GET method, the same request works fine. The API documentation online shows GET is supported.

I just want to understand, was POST supported at one time and now its not supported?

thank you in advance,

fyi…

request:
https://api.tomtom.com/traffic/services/4/incidentDetails/s3/32.643372184046164,-117.07507371519374,32.78810381595384,-117.24709428480627/14/-1/xml?key=*************&projection=EPSG4326&geometries=original&language=en&expandCluster=true&originalPosition=true

Hi,

I checked older documentation versions and it always was supporting only GET method.
Perhaps there was a bug, which allowed to send POST. For sure - if it was processing POST requests then it wasn’t done on purpose.

1 Like