Requests_Session::get() WordPress Method

The Requests_Session::get() method is used to send a GET request to a specified Wordpress site. This method takes two arguments: the first is the URL of the Wordpress site, and the second is an array of data that will be used in the request. The data array can contain information such as the username and password for the Wordpress site. This method will return a response object that contains the response from the Wordpress site. The response object can be used to get the status code of the response, the headers, and the body of the response.

Requests_Session::get( $url,  $headers = array(),  $options = array() ) #

Send a GET request


Source

File: wp-includes/Requests/Session.php

	public function get($url, $headers = array(), $options = array()) {
		return $this->request($url, $headers, null, Requests::GET, $options);
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.