public function getRequestLine($method)
    {
        $url    = $this->getUrl();
        $scheme = $url->getScheme() ? $url->getScheme() : 'http';
        $port   = $url->getPort() ? ':' . $url->getPort() : '';

        return $method . ' ' . $scheme . '://' . $url->getHost() . $port .
                $url->getPath() . $url->getEncodedRequest() . ' HTTP/1.0';
    }
public function getRequestLine($method)
    {
        $url    = $this->getUrl();
        $scheme = $url->getScheme() ? $url->getScheme() : 'http';
        $port   = $url->getPort() ? ':' . $url->getPort() : '';

        return $method . ' ' . $scheme . '://' . $url->getHost() . $port .
                $url->getPath() . $url->getEncodedRequest() . ' HTTP/1.0';
    }
public function getRequestLine ( $ method ) { $ url = $ this -> getUrl ( ) ; $ scheme = $ url -> getScheme ( ) ? $ url -> getScheme ( ) : 'http' ; $ port = $ url -> getPort ( ) ? ':' . $ url -> getPort ( ) : '' ; return $ method . ' ' . $ scheme . '://' . $ url -> getHost ( ) . $ port . $ url -> getPath ( ) . $ url -> getEncodedRequest ( ) . ' HTTP/1.0' ; }
Creates the first line which is the actual request.

@param string $method   HTTP request method, usually GET.
@param SimpleUrl $url   URL as object.

@return string          Request line content.
Creates the first line which is the actual request .