public function validateUri($uri)
    {
        $query = http_build_query(array_merge(
            $this->getOptions()->buildOptions(),
            array('uri' => $uri)
        ));

        $context = stream_context_create(array(
            'http' => array(
                'method' => 'GET',
                'header' => 'User-Agent: HTMLValidator',
            )
        ));

        $data = $this->sendRequest($this->validatorUri . '?' . $query, $context);

        return $this->parseSOAP12Response($data);
    }
public function validateUri($uri)
    {
        $query = http_build_query(array_merge(
            $this->getOptions()->buildOptions(),
            array('uri' => $uri)
        ));

        $context = stream_context_create(array(
            'http' => array(
                'method' => 'GET',
                'header' => 'User-Agent: HTMLValidator',
            )
        ));

        $data = $this->sendRequest($this->validatorUri . '?' . $query, $context);

        return $this->parseSOAP12Response($data);
    }
public function validateUri ( $ uri ) { $ query = http_build_query ( array_merge ( $ this -> getOptions ( ) -> buildOptions ( ) , array ( 'uri' => $ uri ) ) ) ; $ context = stream_context_create ( array ( 'http' => array ( 'method' => 'GET' , 'header' => 'User-Agent: HTMLValidator' , ) ) ) ; $ data = $ this -> sendRequest ( $ this -> validatorUri . '?' . $ query , $ context ) ; return $ this -> parseSOAP12Response ( $ data ) ; }
Validates a given URI

Executes the validator using the current parameters and returns a Response
object on success.

@param string $uri The address to the page to validate ex: http://example.com/

@return Response object HTMLValidator\Response
Validates a given URI