Only get the CSRF token once
Retry fetching until output is the correct size