classes/phing/tasks/ext/HttpRequestTask.php
A HTTP request task.
Making an HTTP request and try to match the response against an provided regular expression.
- author
- Benjamin Schultz
- package
- phing.tasks.ext
- since
- 2.4.1
- version
- $Id: HttpRequestTask.php 764 2010-04-11 18:18:51Z bschultz $
\HttpRequestTask
A HTTP request task.
Making an HTTP request and try to match the response against an provided regular expression.
- Extends from
- \Task
- author
- Benjamin Schultz
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.ext
- since
- 2.4.1
- version
- $Id: HttpRequestTask.php 764 2010-04-11 18:18:51Z bschultz $
Properties

\array<Parameter>
$_configData= 'array'
Holds additional config data for HTTP_Request2
arrayDetails- Type
- \array<Parameter>

\array<Parameter>
$_headers= 'array'
Holds additional header data
arrayDetails- Type
- \array<Parameter>

\array<string>
$_observerEvents= 'array'
Holds the events that will be logged
arrayDetails- Type
- \array<string>

string
$_responseRegex= ''
Holds the regular expression that should match the response
- Type
- string
Methods

createConfig(
)
:
\ParameterCreates a config parameter for this task
| Type | Description |
|---|---|
| \Parameter |

createHeader(
)
:
\ParameterCreates an additional header for this task
| Type | Description |
|---|---|
| \Parameter |

setAuthPassword(
string $password
)
:
Sets the authentication password
| Name | Type | Description |
|---|---|---|
| $password | string |

setAuthScheme(
string $scheme
)
:
Sets the authentication scheme
| Name | Type | Description |
|---|---|---|
| $scheme | string |

setAuthUser(
string $user
)
:
Sets the authentication user name
| Name | Type | Description |
|---|---|---|
| $user | string |

setObserverEvents(
string $observerEvents
)
:
voidSets a list of observer events that will be logged
if verbose output is enabled.
| Name | Type | Description |
|---|---|---|
| $observerEvents | string | List of observer events |

setResponseRegex(
string $regex
)
:
Sets the response regex
| Name | Type | Description |
|---|---|---|
| $regex | string |