# tasks/system/condition/HttpCondition.php

Condition to wait for a HTTP request to succeed. Its attribute(s) are: url - the URL of the request.

errorsBeginAt - number at which errors begin at; default=400. requestMethod - HTTP request method to use; GET, HEAD, etc. default=GET

Based on Apache Ant HttpCondition

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Access
  public
Author
  Michiel Rook
Package
  phing.tasks.system.condition
Version
  $Revision: 526 $ $Date: 2009-08-11 14:11:17 +0200 (Tue, 11 Aug 2009) $

## \HttpCondition
jump to top

Package: phing\tasks\system\condition

Condition to wait for a HTTP request to succeed. Its attribute(s) are: url - the URL of the request.

errorsBeginAt - number at which errors begin at; default=400. requestMethod - HTTP request method to use; GET, HEAD, etc. default=GET

Based on Apache Ant HttpCondition

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Implements
  \Condition
Access
  public
Author
  Michiel Rook
Version
  $Revision: 526 $ $Date: 2009-08-11 14:11:17 +0200 (Tue, 11 Aug 2009) $

### Properties

`$url= '""'`
Default value`""`Details

Type
  n/a

### Methods

`evaluate( ) : boolean`

Returns

Type | Description
--- | ---
boolean |

Throws

Exception | Description
--- | ---
\BuildException |

`setUrl( string $url ) : void`

Set the url attribute

Parameters

Name | Type | Description
--- | --- | ---
$url | string | the url of the request

Documentation was generated by DocBlox 0.17.1.