Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3780

Best way to Save and Retry a URLConnection

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 3780

Trending Articles