These are chat archives for IndySockets/Indy
TIdHTTP.Request.Connection := 'keep-alive';, but the server decides whether it wants to honor it or not. What is the value of
TIdHTTP.Response.KeepAlivewhen each response is received? What kind of data are you requesting, and what format (
TIdHTTP.Response.ContentType) is the server sending it as?
TIdHTTP.Request.Acceptto tell the server what types you are willing to accept. In which case, you could say
image/jpeg. But if you know the server already sends JPEGs, then that is just redundant.
Connect()directly at all in
TIdHTTP. Its request methods, like
Get(), handle that internally after parsing the URL for connection info.