updated postmethod

Updated PostMethod, still need to test and also add sample example