Difference between revisions of "User:Philmasterplus/Sandbox"

From Kolmafia
Jump to navigation Jump to search
Line 11: Line 11:
 
|function2.param1=url
 
|function2.param1=url
 
|function2.param1.type=string
 
|function2.param1.type=string
|function2.param1.optional=yes
 
|function2.param1.default=""
 
 
|function2.param1.description=URL of the page to visit. If a relative URL is provided, it is treated as an in-game page.
 
|function2.param1.description=URL of the page to visit. If a relative URL is provided, it is treated as an in-game page.
 
|function2.param2=use_POST
 
|function2.param2=use_POST

Revision as of 22:43, 18 December 2020

Test text


Function Syntax

buffer visit_url()

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

buffer visit_urlstring 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!