---
name: "CGI::Test::Page::Real"
section: "3pm"
platform: "linux"
package: "libcgi-test-perl"
version: "1.111-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CGI::Test::Page::Real"
---

# CGI::Test::Page::Real(3pm)

Abstract representation of a real page

## NAME

CGI::Test::Page::Real - Abstract representation of a real page

## SYNOPSIS

```
 # Inherits from CGI::Test::Page
 # $page holds a CGI::Test::Page::Real object
 use CGI::Test;
 ok 1, $page->raw_content =~ /test is ok/;
 ok 2, $page->uri->scheme eq "http";
 ok 3, $page->content_type !~ /html/;
```

## DESCRIPTION

This class is the representation of a real page, i.e. something physically returned by the server and which is not an error.

## INTERFACE

The interface is the same as the one described in CGI::Test::Page, with the following additions:

- "raw\_content"

  Returns the raw content of the page, as a string.

- "raw\_content\_ref"

  Returns a reference to the raw content of the page, to avoid making yet another copy.

- "uri"

  The URI object, identifying the page we requested.

## AUTHORS

The original author is Raphael Manfredi.

Steven Hilton was long time maintainer of this module.

Current maintainer is Alexander Tokarev *\<tokarev@cpan.org\>*.

## SEE ALSO

**CGI::Test::Page**(3), **CGI::Test::Page::HTML**(3), **CGI::Test::Page::Other**(3), **CGI::Test::Page::Text**(3), **URI**(3).
