Store type of state as well as state, allowing for http or curl states