Beginnings of code to support cookie (using httpc).