Line: 5 to 5 | ||||||||
---|---|---|---|---|---|---|---|---|
On this page:
| ||||||||
Changed: | ||||||||
< < | ObjectMethod getUrl ($protocol,$host,$port,$url,$user,$pass) -> $text | |||||||
> > | ObjectMethod finish ()Break circular references. | |||||||
Deleted: | ||||||||
< < | Get the text at the other end of a URL | |||||||
Added: | ||||||||
> > | getExternalResource( $url ) -> $response
Get whatever is at the other end of a URL (using an HTTP GET request). Will
only work for encrypted protocols such as
Note that the
The
Note that if LWP is not available, this function:
In the event of the server returning an error, then Note: Callers can easily check the availability of other HTTP::Response methods as follows:
my $response = TWiki::Func::getExternalResource($url); if (!$response->is_error() && $response->isa('HTTP::Response')) { ... other methods of HTTP::Response may be called } else { ... only the methods listed above may be called } | |||||||
setMailHandler( \&fn ) |