
zafar
New User
May 15, 2011, 10:26 AM
Views: 2037
|
|
why the "get" does not bring
|
|
|
# htdocs URL accessibility my $res = $ua->get("$f->{srv_htdocs_url}/index.html"); push @tests, $res->content eq 'XFS' ? 'htdocs URL accessibility: OK' : "htdocs URL accessibility: ERROR (should see XFS on <a href='$f->{srv_htdocs_url}/index.html' target=_blank>link</a>)"; I could not understand why the "eq"does not work and why the "get" does not bring the page content correctly.
# htdocs URL accessibility my $res = $ua->get("$f->{srv_htdocs_url}/index.html"); push @tests, $res->content eq 'XFS' ? 'htdocs URL accessibility: OK' : "htdocs URL accessibility: ERROR (should see XFS on <a href='$f->{srv_htdocs_url}/index.html' target=_blank>link</a>) {$res->content}"; Checking the value returned by the variable {$ res-> content} "was" {HTTP:: Response = HASH (0x122c810) -> content} "but the page only has the text" XFS ".
(This post was edited by zafar on May 16, 2011, 4:29 AM)
|