Abstracting Post and Get requests a bit