I'm attending CakeFest 2010!

8.8.3 request

The base request method, which is called from all the wrappers (get, post, put, delete). Returns the results of the request.

string function request($request)

$request is a keyed array of various options. Here is the format and default settings:

var $request = array(
	'method' => 'GET',
	'uri' => array(
		'scheme' => 'http',
		'host' => null,
		'port' => 80,
		'user' => null,
		'pass' => null,
		'path' => null,
		'query' => null,
		'fragment' => null
	),
	'auth' => array(
		'method' => 'Basic',
		'user' => null,
		'pass' => null
	),
	'version' => '1.1',
	'body' => '',
	'line' => null,
	'header' => array(
		'Connection' => 'close',
		'User-Agent' => 'CakePHP'
	),
	'raw' => null,
	'cookies' => array()
);
  1. var $request = array(
  2. 'method' => 'GET',
  3. 'uri' => array(
  4. 'scheme' => 'http',
  5. 'host' => null,
  6. 'port' => 80,
  7. 'user' => null,
  8. 'pass' => null,
  9. 'path' => null,
  10. 'query' => null,
  11. 'fragment' => null
  12. ),
  13. 'auth' => array(
  14. 'method' => 'Basic',
  15. 'user' => null,
  16. 'pass' => null
  17. ),
  18. 'version' => '1.1',
  19. 'body' => '',
  20. 'line' => null,
  21. 'header' => array(
  22. 'Connection' => 'close',
  23. 'User-Agent' => 'CakePHP'
  24. ),
  25. 'raw' => null,
  26. 'cookies' => array()
  27. );