Added support for posts and basic auth