|
IMDBPHP | |||||
PREV NEXT | Frames No Frame | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MDB_Request
BrowserEmulator class. Provides methods for opening urls and emulating a web browser request.
Method Summary | ||
void | addHeaderLine(string $name, string $value) Add a single header field to the HTTP request header. | |
void | addPostData(string $name, string $value) Add a post parameter. | |
mixed | file(string $url) Make an file call to $url with the parameters set by previous member method calls. | |
mixed | fopen(string $url) Make an fopen call to $url with the parameters set by previous member method calls. | |
array | getLastResponseHeaders() Get the latest server response | |
void | resetHeaderLines() Delete all custom header lines. | |
void | resetPort() Reset the port used for request to the HTTP default (80). | |
void | resetPostData() Delete all custom post parameters. | |
void | setAuth(string $user, string $pass) Set an auth user and password to use for the request. | |
void | setPort(integer $portNumber) Select a custom port to use for the request. |
Method Detail |
void addHeaderLine(string $name, string $value)
Add a single header field to the HTTP request header. The resulting header line will have the format "$name: $value\n"
name
- value
- void addPostData(string $name, string $value)
Add a post parameter. Post parameters are sent in the body of an HTTP POST request.
name
- value
- mixed file(string $url)
Make an file call to $url with the parameters set by previous member method calls. Send all set headers, post data and user authentication data.
url
- mixed fopen(string $url)
Make an fopen call to $url with the parameters set by previous member method calls. Send all set headers, post data and user authentication data.
url
- array getLastResponseHeaders()
Get the latest server response
void resetHeaderLines()
Delete all custom header lines. This will not remove the User-Agent header field, which is necessary for correct operation.
void resetPort()
Reset the port used for request to the HTTP default (80).
void resetPostData()
Delete all custom post parameters.
void setAuth(string $user, string $pass)
Set an auth user and password to use for the request. Set both as empty strings to disable authentication.
user
- pass
- void setPort(integer $portNumber)
Select a custom port to use for the request.
portNumber
-
|
IMDBPHP | |||||
PREV NEXT | Frames No Frame | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This document was generated by phpdocgen 0.17-rc3.
Copyright © 2002-03 Stephane GALLAND (under the GNU General Public License)