Set the URL to make the request to.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The URL to make the request to. |
Returns
Type |
Description |
---|---|
A reference to the current instance. |
Examples
Send a request and display the URL we requested.
$http = new RequestCore(); $http->set_request_url('http://github.com/skyzyx/requestcore/raw/master/_tests/test_request.txt'); $http->send_request(); var_dump($http->response_info['url']);Result:
string(71) "http://github.com/skyzyx/requestcore/raw/master/_tests/test_request.txt"
Source
Method defined in lib/requestcore/requestcore.class.php | Toggle source view (5 lines) | View on GitHub