<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://panoptic.com/mediawiki/aolserver/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Iharding</id>
	<title>AOLserver Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://panoptic.com/mediawiki/aolserver/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Iharding"/>
	<link rel="alternate" type="text/html" href="https://panoptic.com/wiki/aolserver/Special:Contributions/Iharding"/>
	<updated>2026-04-17T09:39:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_conn&amp;diff=5077</id>
		<title>Ns conn</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_conn&amp;diff=5077"/>
		<updated>2007-07-05T16:38:10Z</updated>

		<summary type="html">&lt;p&gt;Iharding: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;manpage&amp;gt;ns_conn&amp;lt;/manpage&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''NAME'''&lt;br /&gt;
&lt;br /&gt;
: ns_conn - Find information about the current HTTP connection.&lt;br /&gt;
&lt;br /&gt;
'''SYNOPSIS'''&lt;br /&gt;
&lt;br /&gt;
: '''ns_conn''' ''option ?arg arg ...?''&lt;br /&gt;
&lt;br /&gt;
'''DESCRIPTION'''&lt;br /&gt;
&lt;br /&gt;
: This command is used to retrieve various pieces of information about a connection.&lt;br /&gt;
&lt;br /&gt;
: The legal ''option''s (which may be abbreviated) are:&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn authpassword'''&lt;br /&gt;
&lt;br /&gt;
: Returns the decoded user password from the authorization data.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn authuser'''&lt;br /&gt;
&lt;br /&gt;
: Returns the decoded user name from the authorization data.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn close'''&lt;br /&gt;
&lt;br /&gt;
: Closes the connection so the script (or ADP) can do any time-consuming processing without making the client wait. If you use ns_conn close in an ADP, streaming should be turned on before closing the connection (i.e. &amp;lt;SCRIPT RUNAT=SERVER STREAM=ON&amp;gt;) or nothing will get sent out at all.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn content''' ''?offset? ?length?''&lt;br /&gt;
&lt;br /&gt;
: Returns the content of the HTTP request body, optionally a substring of that content starting at ''offset'' and extending ''length'' characters.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn contentlength'''&lt;br /&gt;
&lt;br /&gt;
: Returns the number of bytes in the content passed in.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn copy''' ''off len chan''&lt;br /&gt;
&lt;br /&gt;
: Copies data from the current connection to ''chan'' starting at byte ''off'' for ''len'' bytes?&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn driver'''&lt;br /&gt;
&lt;br /&gt;
: Returns the name of the module (nssock or nsssl) that is acting as the communications driver for this connection.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn form'''&lt;br /&gt;
&lt;br /&gt;
: Returns any submitted form data as an ns_set. This form data may have been submitted with a POST or appended to the URL in a GET request. Note: ns_conn form is not suitable for multipart formdata file upload widgets.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn headers'''&lt;br /&gt;
&lt;br /&gt;
: Returns all the header data as an ns_set. The keys of the ns_set represent the field names. The case of the returned field names depends on the HeaderCase configuration parameter. By default, HeaderCase is &amp;quot;Preserve&amp;quot;, which means case is preserved.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn host'''&lt;br /&gt;
&lt;br /&gt;
: Returns the host part of the URL in the HTTP request.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn isconnected'''&lt;br /&gt;
&lt;br /&gt;
: Returns 1 if you're in a connection thread, and you are therefore allowed to make calls to ns_conn. It returns 0 if you're not in a connection thread (such as when you're in a schedule procedure) and you are not allowed to make calls to ns_conn.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn location'''&lt;br /&gt;
&lt;br /&gt;
: Returns the location string for this virtual server in the form: protocol://hostname[:port].&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn method'''&lt;br /&gt;
&lt;br /&gt;
: Returns the HTTP method, e.g. GET.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn outputheaders'''&lt;br /&gt;
&lt;br /&gt;
: Returns an ns_set that will be used in building the headers that will be sent out when a result is returned to the client. This ns_set can be manipulated like any other ns_set. You can also use this command to write to the set of output headers. For example: ns_set put [ns_conn outputheaders] key value.  Keys that exist in the standard set of output headers will be overwritten by user-specified values in this ns_set if any.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn peeraddr'''&lt;br /&gt;
&lt;br /&gt;
: Returns the IP address of the client, i.e. the &amp;quot;other side&amp;quot; of the HTTP connection. The IP address is returned in the form of a string separated with periods (e.g., 155.164.59.75).&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn port'''&lt;br /&gt;
&lt;br /&gt;
: Returns the port specified explicitly in the URL of the HTTP request. If the browser does not explicity send the &amp;quot;:port&amp;quot; part of the URL, the port number returned will be 0.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn protocol'''&lt;br /&gt;
&lt;br /&gt;
: Returns the protocol of the URL in the HTTP request (usually unspecified).&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn query'''&lt;br /&gt;
&lt;br /&gt;
: Returns any query data that was part of the HTTP request.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn request'''&lt;br /&gt;
&lt;br /&gt;
: Returns the HTTP request line as presented by the client, e.g. GET / HTTP/1.1.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn start'''&lt;br /&gt;
&lt;br /&gt;
: Returns the time the connection request started in &amp;quot;sec:usec&amp;quot; (aka [[ns_time]]) format.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn url'''&lt;br /&gt;
&lt;br /&gt;
: Returns the URL of the HTTP request. This is the portion of the request after the hostname, for example [ns_conn url] on http://aolserver.com/ returns /index.adp.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn urlc'''&lt;br /&gt;
&lt;br /&gt;
: Returns the number of elements (delimited by `/') in the URL of the HTTP request.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn urlv'''&lt;br /&gt;
&lt;br /&gt;
: Returns a list containing the pieces of the URL delimited by `/'.&lt;br /&gt;
&lt;br /&gt;
* '''ns_conn version'''&lt;br /&gt;
&lt;br /&gt;
: Returns the version of the HTTP request. This is usually 1.0 or 1.1. &lt;br /&gt;
&lt;br /&gt;
'''EXAMPLES'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SEE ALSO'''&lt;br /&gt;
&lt;br /&gt;
: [[ns_getform]], [[ns_queryget]], [[ns_time]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Tcl API]]&lt;/div&gt;</summary>
		<author><name>Iharding</name></author>
		
	</entry>
</feed>