HttpUrlConnection Helper with Retry Handling