Visit url

From Kolmafia
Revision as of 22:03, 8 March 2010 by imported>StDoodle (moved Visit url() to Visit url over redirect)
Jump to navigation Jump to search

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.

Formatting Needed