bool GetEverything(
string
$url)
|
|
Gets everything from a server and stores it in a string
Gets everything that was sent back by the server and stores it in a string for the rest of the functions to use so that you only have to request a page once to be able to run all the functions. Must be called before any of the other functions will work!
Below is an example:
Tags:
Parameters:
Gets the headers returned from the server.
Gets the headers returned from the server. You must call the function GetEverything first!
Below is an example:
Tags:
Gets the HTML returned from the server.
Gets all the HTML returned from the server. You must call the function GetEverything first!
Below is an example:
Tags:
Gets the status code returned from the server
Gets the status code that was returned from the server. You must call the function GetEverything first!
Below is an example:
Tags:
Gets the text from a web page with the HTML striped.
Gets the text from a web page with all of the HTML striped off. You must call the function GetEverything first!
Below is an example:
Tags:
mixed GetUrls(
string
$url)
|
|
Gets an array of urls from the web page.
Gets an array of urls from the web page in temp_everything; You must call the function GetEverything first!
Below is an example:
Tags:
Parameters:
mixed ReturnEverything(
)
|
|
Gets everything that was returned from the server.
Gets everything that was sent back from the server with the complete headers and HTML. You must call the function GetEverything first!
Below is an example:
Tags:
void SetAgent(
string
$agent)
|
|
Sets the user agent name.
Sets the name of the user agent to send to the server when asking for a web page.
Below is an example:
- <?php
- $robot = new Robot;
- $robot->SetAgent('Pinky and the Brain');
- ?>
Parameters: