Search:

⚙️

Tararua Tramping Club

Te rōpū hīkoi o te pae maunga o Tararua   -   100 years of tramping

Webteam Test Url Get

Search Webteam only

(:template each:)

{=$Name}? {=$Summary}

UrlGet version 2026-09-29

Extensions

Testing the PmWiki Cookbook:TestUrlGet extension, used on the TTC website

example
(:urlget:)
{$UrlGetMsg}

UrlGet

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

The internal PmWiki variable "$UrlGetFunction" is set to "UrlGet\UrlGet"
The PHP runtime setting "allow_url_fopen" is not enabled.
example
(:urlget test:)
{$UrlGetMsg}

UrlGet

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

The internal PmWiki variable "$UrlGetFunction" is set to "UrlGet\UrlGet"
The PHP runtime setting "allow_url_fopen" is not enabled.


Linux (Linux) Test UrlGet with https://www.pmwiki.org/pmwiki/recipelist
This test unexpectedly failed
-> $FmtV['$UrlGetMsg'] = UrlGet: https://www.pmwiki.org/pmwiki/recipelist returned redirect 302 to https://www.pmwiki.net/pmwiki/recipelist(approve sites), redirect not followed
Test UrlGet with https://www.pmwiki.org/pmwiki/nosuchfile
This test failed as expected

$FmtV['$UrlGetMsg'] = UrlGet: https://www.pmwiki.org/pmwiki/nosuchfile returned redirect 302 to https://www.pmwiki.net/pmwiki/nosuchfile(approve sites), redirect not followed



Messages

RecipeCheck

Check recipes

Category: Extensions

Page last modified on 2026 Apr 07 23:41

Edit - History - Recent changes - Wiki help - Search     About TTC     Contact us     About the website     Site map     email page as link -> mailto:?Subject="TTC: Test Url Get"&Body="From the TTC website: Test Url Get (https://www [period] ttc [period] org [period] nz/Webteam/TestUrlGet) Testing the PmWiki [[Cookbook:TestUrlGet extension, used on the TTC website." ]]