get and posts working