I’ve had great success interacting with APIs via URLConnection, and as expected I encounter some routine errors in the transaction (e.g., “504 Gateway Timeout”), and want to retry my request.
At the moment I’m thinking I need to capture all the parameters used to create the request, e.g., RequestHeader(s) and the string used in the original Send method. Then if I get a non-critical error (server busy, etc.) I can put the request back in queue to retry.
Is there an easy way to re-use a URLConnection object, asking it to ‘re-send’?
4 posts - 3 participants