reads get and post params