form.c File Reference

#include "nsd.h"

Functions

Ns_Set * Ns_ConnGetQuery (Ns_Conn *conn)
void Ns_ConnClearQuery (Ns_Conn *conn)
Ns_ConnFile * Ns_ConnGetFile (Ns_Conn *conn, char *file)
Ns_ConnFile * Ns_ConnFirstFile (Ns_Conn *conn, Tcl_HashSearch *searchPtr)
Ns_ConnFile * Ns_ConnNextFile (Tcl_HashSearch *searchPtr)
int Ns_QueryToSet (char *query, Ns_Set *set)
int NsTclParseQueryObjCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj **objv)
int NsCheckQuery (Ns_Conn *conn)

Function Documentation

void Ns_ConnClearQuery ( Ns_Conn *  conn  ) 

----------------------------------------------------------------------

Ns_ConnClearQuery --

Release the any query set cached up from a previous call to Ns_ConnGetQuery. Useful if the query data requires reparsing, as when the encoding changes.

Results: Query data or NULL if error

Side effects:

----------------------------------------------------------------------

Ns_ConnFile* Ns_ConnFirstFile ( Ns_Conn *  conn,
Tcl_HashSearch *  searchPtr 
)

----------------------------------------------------------------------

Ns_ConnFirstFile --

Begin a search of all files contained within a multipart browser upload. Note the order of the files are stored in a hash table and the order returned is random.

Results: Pointer to first Ns_ConnFile or NULL if no files present.

Side effects: Contents of the Tcl_HashSearch struct pointed to by searchPtr will be initialized and updated for the search. This parameter must be passed to subsequent calls to Ns_ConnNextFile.

----------------------------------------------------------------------

Ns_ConnFile* Ns_ConnGetFile ( Ns_Conn *  conn,
char *  file 
)

----------------------------------------------------------------------

Ns_ConnGetFile --

Return the Ns_ConnFile struct for given filename contained in a multipart form POST.

Results: Pointer to Ns_ConnFile or NULL if no such file.

Side effects: None.

----------------------------------------------------------------------

Ns_Set* Ns_ConnGetQuery ( Ns_Conn *  conn  ) 

----------------------------------------------------------------------

Ns_ConnGetQuery --

Get the connection query data, either by reading the content of a POST request or get it from the query string

Results: Query data or NULL if error

Side effects:

----------------------------------------------------------------------

Ns_ConnFile* Ns_ConnNextFile ( Tcl_HashSearch *  searchPtr  ) 

----------------------------------------------------------------------

Ns_ConnNextFile --

Return the next Ns_ConnFile in a search of all files.

Results: Pointer to next Ns_ConnFile or NULL when search is complete.

Side effects: None.

----------------------------------------------------------------------

int Ns_QueryToSet ( char *  query,
Ns_Set *  set 
)

----------------------------------------------------------------------

Ns_QueryToSet --

Parse query data into an Ns_Set

Results: NS_OK.

Side effects: Will add data to set without any UTF conversion.

----------------------------------------------------------------------

int NsCheckQuery ( Ns_Conn *  conn  ) 

----------------------------------------------------------------------

NsCheckQuery --

Validate the connection query was decoded with the current URL encoding.

Results: 1 if query is valid, 0 otherwise.

Side effects: None.

----------------------------------------------------------------------

int NsTclParseQueryObjCmd ( ClientData  dummy,
Tcl_Interp *  interp,
int  objc,
Tcl_Obj **  objv 
)

----------------------------------------------------------------------

NsTclParseQueryObjCmd --

This procedure implements the AOLserver Tcl

ns_parsequery querystring

command.

Results: The Tcl result is a Tcl set with the parsed name-value pairs from the querystring argument

Side effects: None external.

----------------------------------------------------------------------


Generated on Tue Sep 4 19:58:56 2007 by  doxygen 1.5.1