Additional fix for forge issue #45741: some curllib binaries do not return redirect_url. We have to fetch those from the returned headers.