edit server file to use post and get