working POST and GET