tinyows 1.2.2
cgi_request.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <ctype.h>
#include "../ows/ows.h"
Include dependency graph for cgi_request.c:

Go to the source code of this file.

Macros

#define CGI_QUERY_MAX   1000000

Functions

bool cgi_method_get ()
bool cgi_method_post ()
char * cgi_getback_query (ows *o)
static char cgi_hexatochar (char *what)
static void cgi_unescape_url (char *url)
static void cgi_plustospace (char *str)
static void cgi_remove_crlf (char *str)
arraycgi_parse_kvp (ows *o, char *query)
static arraycgi_add_node (array *arr, xmlNodePtr n)
static arraycgi_add_att (array *arr, xmlAttr *att)
static arraycgi_add_sortby (array *arr, xmlNodePtr n)
static arraycgi_add_buffer (array *arr, buffer *b, char *name)
static buffercgi_add_into_buffer (buffer *b, xmlNodePtr n, bool need_comma)
buffercgi_add_xml_into_buffer (buffer *element, xmlNodePtr n)
static bool is_node_ns_wfs (xmlNodePtr n)
arraycgi_parse_xml (ows *o, char *query)

Macro Definition Documentation

◆ CGI_QUERY_MAX

#define CGI_QUERY_MAX   1000000

Definition at line 36 of file cgi_request.c.

Referenced by cgi_parse_kvp().

Function Documentation

◆ cgi_add_att()

array * cgi_add_att ( array * arr,
xmlAttr * att )
static

Definition at line 274 of file cgi_request.c.

References array_add(), buffer_add_str(), and buffer_init().

Referenced by cgi_parse_xml().

Here is the call graph for this function:

◆ cgi_add_buffer()

array * cgi_add_buffer ( array * arr,
buffer * b,
char * name )
static

Definition at line 353 of file cgi_request.c.

References array_add(), Buffer::buf, buffer_add_str(), buffer_copy(), buffer_init(), buffer_pop(), buffer_shift(), and check_regexp().

Referenced by cgi_parse_xml().

Here is the call graph for this function:

◆ cgi_add_into_buffer()

buffer * cgi_add_into_buffer ( buffer * b,
xmlNodePtr n,
bool need_comma )
static

Definition at line 381 of file cgi_request.c.

References buffer_add_str().

Referenced by cgi_parse_xml().

Here is the call graph for this function:

◆ cgi_add_node()

array * cgi_add_node ( array * arr,
xmlNodePtr n )
static

Definition at line 249 of file cgi_request.c.

References array_add(), buffer_add_str(), and buffer_init().

Referenced by cgi_parse_xml().

Here is the call graph for this function:

◆ cgi_add_sortby()

array * cgi_add_sortby ( array * arr,
xmlNodePtr n )
static

Definition at line 299 of file cgi_request.c.

References array_add(), buffer_add_str(), and buffer_init().

Referenced by cgi_parse_xml().

Here is the call graph for this function:

◆ cgi_add_xml_into_buffer()

buffer * cgi_add_xml_into_buffer ( buffer * element,
xmlNodePtr n )

Definition at line 401 of file cgi_request.c.

References buffer_add_str().

Referenced by cgi_parse_xml(), ows_psql_gml_to_sql(), wfs_delete_xml(), and wfs_update_xml().

Here is the call graph for this function:

◆ cgi_getback_query()

char * cgi_getback_query ( ows * o)

Definition at line 68 of file cgi_request.c.

References cgi_method_get(), cgi_method_post(), ows_error(), and OWS_ERROR_REQUEST_HTTP.

Referenced by main().

Here is the call graph for this function:

◆ cgi_hexatochar()

char cgi_hexatochar ( char * what)
static

Definition at line 102 of file cgi_request.c.

Referenced by cgi_unescape_url().

◆ cgi_method_get()

bool cgi_method_get ( )

◆ cgi_method_post()

bool cgi_method_post ( )

Definition at line 55 of file cgi_request.c.

Referenced by cgi_getback_query(), main(), ows_kvp_or_xml(), and ows_request_check().

◆ cgi_parse_kvp()

◆ cgi_parse_xml()

◆ cgi_plustospace()

void cgi_plustospace ( char * str)
static

Definition at line 135 of file cgi_request.c.

Referenced by cgi_parse_kvp().

◆ cgi_remove_crlf()

void cgi_remove_crlf ( char * str)
static

Definition at line 146 of file cgi_request.c.

Referenced by cgi_parse_kvp().

◆ cgi_unescape_url()

void cgi_unescape_url ( char * url)
static

Definition at line 117 of file cgi_request.c.

References cgi_hexatochar().

Referenced by cgi_parse_kvp().

Here is the call graph for this function:

◆ is_node_ns_wfs()

bool is_node_ns_wfs ( xmlNodePtr n)
static

Definition at line 426 of file cgi_request.c.

Referenced by cgi_parse_xml().


Generated for tinyows by doxygen 1.14.0