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

MDBApi
Class MDB_Request

- BrowserEmulator
-

class MDB_Request
extends BrowserEmulator

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, [object $mdb_config])
No need to call this.

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

Methods inherited from class BrowserEmulator and not overridden
addHeaderLine, addPostData, file, fopen, getLastResponseHeaders, resetHeaderLines, resetPort, resetPostData, setAuth, setPort

Constructor Detail

MDB_Request()

void MDB_Request(string $url, [object $mdb_config])

No need to call this.

Parameters:
url - URL to open
mdb_config - Optionally pass in the mdb_config object to use

Method Detail

getResponseBody()

string getResponseBody()

Get the Response body

Returns:
page

getresponseheader()

string getresponseheader(string $header)

Get a header value from the response

Parameters:
header - header field name
Returns:
header value

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 Stephane GALLAND (under the GNU General Public License)