Added method getpost

Added method getpost for the common requirement of supporting both GET and POST verbs. This method proved useful for me.