<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Make_url</id>
	<title>Make url - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Make_url"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Make_url&amp;action=history"/>
	<updated>2026-04-25T00:14:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Make_url&amp;diff=7428&amp;oldid=prev</id>
		<title>Bale: function added in r8940. Not very useful, but it should be on the wiki anyway.</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Make_url&amp;diff=7428&amp;oldid=prev"/>
		<updated>2011-04-27T09:14:10Z</updated>

		<summary type="html">&lt;p&gt;function added in r8940. Not very useful, but it should be on the wiki anyway.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{&lt;br /&gt;
#vardefine:name|make_url}}{{&lt;br /&gt;
#vardefine:return_type|buffer}}{{&lt;br /&gt;
&lt;br /&gt;
FunctionPage|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
&lt;br /&gt;
function1={{Function|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
aggregate={{#var:aggregate}}|&lt;br /&gt;
return_type={{#var:return_type}}|&lt;br /&gt;
return_also={{#var:return_also}}|&lt;br /&gt;
parameter1={{Param|string|page}}|&lt;br /&gt;
parameter2={{Param|boolean|use_POST}}|&lt;br /&gt;
parameter3={{Param|boolean|encoded}}|&lt;br /&gt;
p1desc={{Pspan|page}} is the page to visit|&lt;br /&gt;
p2desc={{Pspan|use_POST}} is true for a POST request and false for a GET request|&lt;br /&gt;
p3desc={{Pspan|encoded}} If set to true, then the url is assumed to be pre-encoded by the user.|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function_description=Returns the url that would be visited if this was a {{f|visit_url}}. This function was intended for troubleshooting crafted urls and has no use outside of debugging purposes.|&lt;br /&gt;
&lt;br /&gt;
code1={{CodeSample|&lt;br /&gt;
title=Code Samples|&lt;br /&gt;
description=Compares the URL you expect to visit with the URL that you are actually visiting. [http://kolmafia.us/showthread.php?5754&amp;amp;p=42725&amp;amp;viewfull=1#post42725 This was once useful].|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
buffer mbuf;&lt;br /&gt;
mbuf.append( &amp;quot;pickpocket\n&amp;quot; );&lt;br /&gt;
mbuf.append( &amp;quot;attack\n&amp;quot; );&lt;br /&gt;
mbuf.append( &amp;quot;repeat&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
string macro = mbuf.to_string();&lt;br /&gt;
&lt;br /&gt;
buffer new_url;&lt;br /&gt;
new_url.append( &amp;quot;fight.php&amp;quot; );&lt;br /&gt;
new_url.append( &amp;quot;?&amp;quot; );&lt;br /&gt;
new_url.append( &amp;quot;action=macro&amp;quot; );&lt;br /&gt;
new_url.append( &amp;quot;&amp;amp;&amp;quot; );&lt;br /&gt;
new_url.append( &amp;quot;macrotext=&amp;quot; );&lt;br /&gt;
new_url.append( macro );&lt;br /&gt;
&lt;br /&gt;
print( &amp;quot;crafted unencoded url = \&amp;quot;&amp;quot; + new_url + &amp;quot;\&amp;quot;&amp;quot;);&lt;br /&gt;
print( &amp;quot;submitted url = \&amp;quot;&amp;quot; + make_url( new_url, true, false ) + &amp;quot;\&amp;quot;&amp;quot; );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}|&lt;br /&gt;
see_also={{SeeAlso|visit_url}}|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Miscellaneous Functions]]&lt;/div&gt;</summary>
		<author><name>Bale</name></author>
	</entry>
</feed>