User:Philmasterplus/Sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{{{{format|User:Philmasterplus/TemplateSandbox2}}} | Test text | ||
<onlyinclude>{{{{{format|User:Philmasterplus/TemplateSandbox2}}} | |||
|name=visit_url | |name=visit_url | ||
|function1.return_type=buffer | |function1.return_type=buffer | ||
Line 23: | Line 25: | ||
|function2.param3.description=If <code>true</code>, KoLmafia assumes that <code>url</code> has already been [[wikipedia:Percent-encoding|URL-encoded]] and will not encode it. | |function2.param3.description=If <code>true</code>, KoLmafia assumes that <code>url</code> has already been [[wikipedia:Percent-encoding|URL-encoded]] and will not encode it. | ||
|{{{1|}}} | |{{{1|}}} | ||
}} | }}</onlyinclude> | ||
Hello, world! |
Revision as of 20:44, 18 December 2020
Test text
Function Syntax
- Returns the original HTML source of the page being overridden inside a relay override script.
buffer visit_url( string 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 thaturl
has already been URL-encoded and will not encode it.
{{{description}}} Hello, world!