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