NaviServer - programmable web server

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

# ns_puts(n) 4.99.8 naviserver "NaviServer Built-in Commands"

## Name

ns_puts - Output string to the connection

## Table Of Contents

## Description

In the Tcl script this command can be used to output lines in case when the whole response is built manually, not via ns_returnXXXX commands.

    ns_puts "HTTP/1.0 200 OK"
    ns_puts "Content-Type: text/plain"
    ns_puts ""
    ns_puts "Response body"
    ns_conn close