Modification that will recognize HTTP protocol used and modify the base variable accordingly