I am struggling to load more than the first line on a post call.
In order to help a association of customer, I am trying to connect to the API of the rail services, to check the delays of the trains. In the past they had a restful api, now they changed it to a post call made in a hideous way, design in my point of view to block any attempt of automatic get the data.
So to share more details with, I activated the Developer tools of my google chrome and tried to sniff the calls being made by the browser.
I set up the connector and I am being able to get the first line, but I dont understand, why I dont get the remaining lines.
POST /fr/service-clientele/attestation-de-retard.aspx HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: http://www.belgianrail.be/fr/service-clientele/attestation-de-retard.aspx Accept-Encoding: gzip, deflate
The body is a huge and horrendous thing, but to create an automated procedure i only need to change two parameters in the body txtTrainNumber=768 and txtSelectedDateTrain=06%2F02%2F2018, like that I can interate by the trains and by the dates.
It would be great an extra hand just to understand why I dont get full expected csv attached, and I just get the first row.