Recent Changes - Search:

add Test Extensions page

hide Test Extensions

Test Extensions


hide Topics

Topics

show Changed

Changed

Visitor's book Site map pmwiki-2.5.9

Url Get

UrlGet version 2026-04-08

Extensions

Testing the UrlGet extension. See PmWiki Cookbook:UrlGet

example
(:urlget:)
{$UrlGetMsg}

UrlGet

The internal PmWiki "$UrlGetFunction" is set to "UrlGet\UrlGet"

UrlGet is a function that uses "cURl"(approve sites) to retrieve the contents of a URL.
Returns the URL contents as a string, or FALSE, the same as "file_get_contents".
Returns error messages in $FmtV['$UrlGetMsg'].

example
(:urlget test:)
{$UrlGetMsg}

UrlGet

The internal PmWiki "$UrlGetFunction" is set to "UrlGet\UrlGet"

UrlGet is a function that uses "cURl"(approve sites) to retrieve the contents of a URL.
Returns the URL contents as a string, or FALSE, the same as "file_get_contents".
Returns error messages in $FmtV['$UrlGetMsg'].

Test UrlGet with https://www.pmwiki.org/pmwiki/recipelist
1,055 lines and 56,172 characters returned. First two lines:

# updated: 2026-04-14T07:29:02Z
PmWiki:Upgrades pmwiki-2.5.9


Test UrlGet with https://www.pmwiki.org/pmwiki/nosuchfile
This test failed as expected


Messages

Category: Extensions

tahi Page last modified on 2026 Apr 08 07:44

Edit - History - Recent Changes - WikiHelp - Search - ?Subject="KiwiWiki: Url Get"&Body="From KiwiWiki: Url Get (https://kiwiwiki [period] nz/TestExtensions/UrlGet) - Testing the [[Extensions/UrlGet extension. See PmWiki Cookbook:UrlGet" | email page as link ]]