Changed order to call URL then header