Added support for post and cookies