Working get and post requests