Thank you rlebeau,
As you can possible detect I know virtually nothing about how to apply the TIdHTTP components, so when I originally wrote the code I searched the web and through trial and error found a combination that worked so I stuck with it and it has worked for years.
Thank you so much for your reply I will go though each of your comments and adjust my code testing each change as I do because the Betfair API Server is a cantankerous animal and any mismatch causes errors.
As you can possible detect I know virtually nothing about how to apply the TIdHTTP components, so when I originally wrote the code I searched the web and through trial and error found a combination that worked so I stuck with it and it has worked for years.
Thank you so much for your reply I will go though each of your comments and adjust my code testing each change as I do because the Betfair API Server is a cantankerous animal and any mismatch causes errors.

