Overview   Package   Tree   Index 
IMDBPHP
PREV  NEXT Frames  No Frame 
SUMMARY:  FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

MDBApi
Class MDB_Request


class MDB_Request

The request class Here we emulate a browser accessing the IMDB site. You don't need to call any of its method directly - they are rather used by the IMDB classes.


Constructor Summary
void MDB_Request(string $url, [string $force_agent], [string $trigger_referer])
Constructor: Initialize the BrowserEmulator No need to call this.

Method Summary
string getResponseBody()
Get the Response body
string getresponseheader([string $header])
Obtain the response header
boolean sendRequest()
Send a request to the movie site
void setURL()
Set the URL we need to parse

Constructor Detail

MDB_Request()

void MDB_Request(string $url, [string $force_agent], [string $trigger_referer])

Constructor: Initialize the BrowserEmulator No need to call this.

Parameters:
url - URL to open
force_agent - user agent string to use. Defaults to the one set in mdb_config.
trigger_referer - whether to trigger the referer. 'TRUE' = yes, 'FALSE' = no, '' = take value from mdb_config (default)

Method Detail

getResponseBody()

string getResponseBody()

Get the Response body

Returns:
page

getresponseheader()

string getresponseheader([string $header])

Obtain the response header

Parameters:
header -
Returns:
header

sendRequest()

boolean sendRequest()

Send a request to the movie site

Returns:
success

setURL()

void setURL()

Set the URL we need to parse


 Overview   Package   Tree   Index 
IMDBPHP
PREV  NEXT Frames  No Frame 
SUMMARY:  FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Submit a bug

This document was generated by phpdocgen 0.17-rc3.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)