Méthode | Description | |
---|---|---|
__construct ( string $url, |
No need to call this. | |
addHeaderLine ( $name, $value ) | ||
getLastResponseHeaders ( ) | ||
getRedirect ( ) : string | null | Get the URL to redirect to if a 30* was returned | |
getResponseBody ( ) : string | Get the Response body | |
getStatus ( ) : integer | null | HTTP status code of the last response | |
getresponseheader ( string $header ) : string | Get a header value from the response | |
sendRequest ( ) : boolean | Send a request to the movie site | |
setURL ( string $url ) | Set the URL we need to parse |
Méthode | Description | |
---|---|---|
callback_CURLOPT_HEADERFUNCTION ( $ch, $str ) |
public __construct ( string $url, |
||
$url | string | URL to open |
$config | The Config object to use |
public getRedirect ( ) : string | null | ||
Résultat | string | null | URL to redirect to if 300, otherwise null |
public getResponseBody ( ) : string | ||
Résultat | string | page |
public getresponseheader ( string $header ) : string | ||
$header | string | header field name |
Résultat | string | header value |
public sendRequest ( ) : boolean | ||
Résultat | boolean | success |