Hi guys, I created a web app with integrated web server (indy 10) to replicate errors. I would like your opinion on this. What's wrong?
I have to read a json string through an http call and I tried 3 ways. The first works, the other two do not. But I would like to understand what is different. For me it is absurd. Who can help me? With indy, reading this string generates an error that is not always replicable:
HTTP / 1.1 200 OK Connection: close Content-Length: 397
While synapse the version that I expect to work does not work, while the one written by me. Tips? I enclose an example.
This is my browser result:
correct: { "token" : "ZVRoQWN0aFF6UExkdmQ4VTVlcmd4VGkxM1duQVdpUFFydnBESGJ4eUhQTUtTUUhoNldGTU9sWlFscjhna0JZdXlaeTBiWFVaWSs5a1dVa0RtbnJtN1NPVm1RT25sd1VuLzdINlBHcUl4NWtoVjl0bFJJWXZ6blFDYytrMEdseStjRitwNFlRY1U4WWJBdjc2U1pXbk11RnBzWFlGZ2hBWThJQThxaTBrLy9MQlBhU1loeTVCYzI1VzdWcTBFVGEyRGxSMkV3WkRqdWxlbmNRMWo2bWlVK1kzRi9sbnEwU2R6Q3BHV3JaR3gwTGYrblpwUmNEaVc1UEdDdC9mQTVUbGs2OUtOanloUlJWN1ZIR2JydlRYQnh0V3ljbz0=" }
error 1: { "token" : "ZVRoQWN0aFF6UExkdmQ4VTVlcmd4VGkxM1duQVdpUFFydnBESGJ4eUhQTUtTUUhoNldGTU9sWlFscjhna0JZdXlaeTBiWFVaWSs5a1dVa0RtbnJtN1NPVm1RT25sd1VuLzdINlBHcUl4NWtoVjl0bFJJWXZ6blFDYytrMEdseStjRitwNFlRY1U4WWJBdjc2U1pXbk11RnBzWFlGZ2hBWThJQThxaTBrLy9MQlBhU1loeTVCYz
error 2: HTTP/1.1 200 OK Connection: close Content-Length: 397 Server: NGIT Bootstrap Application Set-Cookie: IDHTTPSESSIONID=nh2ari4EVMF2sxBnh2ari4EVMF2sxBnh2ari4EVMF2sxBnh2ari4EVMF2sxBnh2ari4EVMF2sxBnh2ari4EVMF2sxB; path=/ { "token" : "ZVRoQWN0aFF6UExkdmQ4VTVlcmd4VGkxM1duQVdpUFFydnBESGJ4eUhQTUtTUUhoNldGTU9sWlFscjhna0JZdXlaeTBiWFVaWSs5a1dVa0RtbnJtN1NPVm1RT25sd1VuLzdINlBHcUl4NWtoVjl0bFJJWXZ6blFDY