add curl request function

Migrated the cURL request from the uw_course module