classes/phing/tasks/ext/HttpTask.php
public function main()
    {
        if (!isset($this->url)) {
            throw new BuildException("Required attribute 'url' is missing");
        }

        try {
            $this->processResponse($this->createRequest()->send());
        } catch (HTTP_Request2_MessageException $e) {
            throw new BuildException($e);
        }
    }
public function main()
    {
        if (!isset($this->url)) {
            throw new BuildException("Required attribute 'url' is missing");
        }

        try {
            $this->processResponse($this->createRequest()->send());
        } catch (HTTP_Request2_MessageException $e) {
            throw new BuildException($e);
        }
    }
public function main ( ) { if ( ! isset ( $ this -> url ) ) { throw new BuildException ( "Required attribute 'url' is missing" ) ; } try { $ this -> processResponse ( $ this -> createRequest ( ) -> send ( ) ) ; } catch ( HTTP_Request2_MessageException $ e ) { throw new BuildException ( $ e ) ; } }
Makes a HTTP request and processes its response

@throws BuildException
Makes a HTTP request and processes its response