Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(Indy) Web application get page error
#1
Hi, I use indy for my project combined with lazarus where I need a web server. Everything seems to work, but when I try to read the contents of a web page with a token in json, I get (not always errors). In particular. This:

HTTP / 1.1 200 OK Connection: close Content-Length: 397

This is the link to the lazarus forum where I have already posted the problem and where you can find an example to replicate the error. You will see that I tried to read it synapse, but only out of curiosity, to see if the error was replicable. I'm interested in solving the problem related to indy so I remove synapse dependencies from my project.

http://forum.lazarus-ide.org/index.php/t...n.html#new

Thank you
Reply
#2
(11-07-2018, 10:42 AM)xinyiman Wrote: This is the link to the lazarus forum where I have already posted the problem and where you can find an example to replicate the error.

I posted a reply in that forum.

Reply
#3
(11-07-2018, 06:39 PM)rlebeau Wrote:
(11-07-2018, 10:42 AM)xinyiman Wrote: This is the link to the lazarus forum where I have already posted the problem and where you can find an example to replicate the error.

I posted a reply in that forum.

I posted a reply in that forum.
Reply
#4
Remy Lebeau

now I understand that the problem is not on the GET, but the delay of the GET made sure to make the mistake arise. If you go to the lazarus forum to download the last example you'll see that I replaced the GET with a sleep of 4 seconds and if the browser launches the page http://127.0.0.01:8060/index.html after the second run the program closes and I do not understand why. No error returns.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)