Visit url: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
Created page with ''''string/buffer visit_url( string page_to_visit )''' <br />Returns the HTML of the page selected. For addresses inside of KoL, providing input on which server to ac…'
 
No edit summary
Line 8: Line 8:
For pages located outside of KoL, the full address must be provided:
For pages located outside of KoL, the full address must be provided:
<pre>string visit_info = visit_url( "http://wiki.kolmafia.us/index.php?title=Visit_url()" );</pre>
<pre>string visit_info = visit_url( "http://wiki.kolmafia.us/index.php?title=Visit_url()" );</pre>
Will return <i><b>all</b></i> of the html. If you see just the words, it will return those, and also all the html code that surrounds it.

Revision as of 00:21, 6 October 2009

string/buffer visit_url( string page_to_visit )
Returns the HTML of the page selected.

For addresses inside of KoL, providing input on which server to access is not required; KoL Mafia will automatically retrieve the HTML source of the page you provide, for the server you are currently logged onto:

string messages_html = visit_url( "messages.php" );


For pages located outside of KoL, the full address must be provided:

string visit_info = visit_url( "http://wiki.kolmafia.us/index.php?title=Visit_url()" );

Will return all of the html. If you see just the words, it will return those, and also all the html code that surrounds it.