$value = JRequest::getVar('param_name', 'default_value', 'get');
$values = JRequest::getVar('param_name', array(), 'post', 'array');
$method = JRequest::getMethod();This will return the current request method (GET, POST, PUT, etc.). JRequest is now deprecated and has been replaced by JInput in Joomla! 3.x. It is recommended to use JInput instead for accessing and manipulating request data.