[ Table Of Contents | Keyword Index ]

ns_puts(n) 4.99 "NaviServer Built-in Commands"

NAME

ns_puts - Output string to the connection

TABLE OF CONTENTS

    TABLE OF CONTENTS
    DESCRIPTION

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