Add config function to mock curl API.