Workaround to handle post and get requests