I have never used codeigniter, but for this I am checking $_SERVER['REQUEST_METHOD'] .
Looking at the docs , maybe something like:
if ($this->input->server('REQUEST_METHOD') == 'GET') //its a get else if ($this->input->server('REQUEST_METHOD') == 'POST') //its a post
If you are going to use it a lot, then its easy to collapse your own isGet() function for it.
cOle2 source share