My app (PB 2019-R3) uses HttpClient to make web service calls. I have AutoReadData = False so I am using ReadData to return the results. The sending of the request is done with PostDataStart/PostData/PostDataEnd.
In general it works great but occasionally when a user's computer goes into hibernation and wakes up or the network 'blips', the app will get a 'General Error' from the next PostDataStart or ReadData.
I suspect it might have to do with Keep-Alive. I could turn it off at the server in the 'HTTP Response Headers' section of IIS Manager. This would theoretically make regular operation slower.
Would it be better to just add in a retry feature - try the function again before reporting an error to the user.
Just food for thought, but what you are suggesting should work well too.