Difference between revisions of "User:Philmasterplus/Sandbox"

From Kolmafia
Jump to navigation Jump to search
Line 2: Line 2:
  
 
<onlyinclude>{{{{{format|User:Philmasterplus/TemplateSandbox2}}}
 
<onlyinclude>{{{{{format|User:Philmasterplus/TemplateSandbox2}}}
|name=visit_url
+
|name=User:Philmasterplus/Sandbox
 
|function1.return_type=buffer
 
|function1.return_type=buffer
 
|function1.description=Returns the original HTML source of the page being overridden inside a relay override script.
 
|function1.description=Returns the original HTML source of the page being overridden inside a relay override script.

Revision as of 10:33, 20 December 2020

Test text


Function Syntax

buffer User:Philmasterplus/Sandbox()

Returns the original HTML source of the page being overridden inside a relay override script.

buffer User:Philmasterplus/Sandboxstring url, boolean? use_POST = true, boolean? encoded = false )

Visits a web page and returns its HTML source.
  • url: URL of the page to visit. If a relative URL is provided, it is treated as an in-game page.
  • use_POST: If true, makes an HTTP POST request when visiting the URL. Otherwise, makes a GET request.
  • encoded: If true, KoLmafia assumes that url has already been URL-encoded and will not encode it.

{{{description}}} Hello, world!