implemented post command

Dear Saeed and khoeini, I implemented the post command to our console. please check it, and if it has not any problem merge it.