PTFM-7187: R retry logic with missing Content-Length (and retry bugfixes)