We use the SOFA API for handling HRTFs. See http://sofaconventions.org
The HRTFs are provided from the URL given by SOFAdbURL. Scripts usually downloaded the required HRTFs on the fly.