#include <stdio.h>#include <time.h>#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <strings.h>#include <unistd.h>#include <dirent.h>#include <errno.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <ctype.h>#include "gridsite.h"Go to the source code of this file.
Defines | |
| #define | VERSION "x.x.x" |
Functions | |
| void | GRSThttpBodyInit (GRSThttpBody *thisbody) |
| void | GRSThttpPrintf (GRSThttpBody *thisbody, char *fmt,...) |
| int | GRSThttpCopy (GRSThttpBody *thisbody, char *file) |
| void | GRSThttpWriteOut (GRSThttpBody *thisbody) |
| int | GRSThttpPrintHeaderFooter (GRSThttpBody *bp, char *file, char *headfootname) |
| int | GRSThttpPrintHeader (GRSThttpBody *bp, char *file) |
| int | GRSThttpPrintFooter (GRSThttpBody *bp, char *file) |
| char * | GRSThttpGetCGI (char *name) |
| char * | GRSThttpUrlDecode (char *in) |
| char * | GRSThttpUrlEncode (char *in) |
| char * | GRSThttpUrlMildencode (char *in) |
| #define VERSION "x.x.x" |
Definition at line 33 of file grst_http.c.
| void GRSThttpBodyInit | ( | GRSThttpBody * | thisbody | ) |
| int GRSThttpCopy | ( | GRSThttpBody * | thisbody, | |
| char * | file | |||
| ) |
Definition at line 98 of file grst_http.c.
References close, GRSThttpBody::first, fstat, GRSThttpBody::last, len, malloc(), GRSThttpCharsList::next, NULL, open, p, read, GRSThttpBody::size, stat, and GRSThttpCharsList::text.
Referenced by GRSThttpPrintFooter(), GRSThttpPrintHeader(), and GRSThttpPrintHeaderFooter().
| char* GRSThttpGetCGI | ( | char * | name | ) |
| void GRSThttpPrintf | ( | GRSThttpBody * | thisbody, | |
| char * | fmt, | |||
| ... | ||||
| ) |
Definition at line 62 of file grst_http.c.
References GRSThttpBody::first, GRSThttpBody::last, malloc(), GRSThttpCharsList::next, NULL, p, size, GRSThttpBody::size, size_t, and GRSThttpCharsList::text.
| int GRSThttpPrintFooter | ( | GRSThttpBody * | bp, | |
| char * | file | |||
| ) |
Definition at line 224 of file grst_http.c.
References getenv(), GRST_FOOTFILE, GRSThttpCopy(), GRSThttpPrintHeaderFooter(), and NULL.
| int GRSThttpPrintHeader | ( | GRSThttpBody * | bp, | |
| char * | file | |||
| ) |
Definition at line 208 of file grst_http.c.
References getenv(), GRST_HEADFILE, GRSThttpCopy(), GRSThttpPrintHeaderFooter(), and NULL.
| int GRSThttpPrintHeaderFooter | ( | GRSThttpBody * | bp, | |
| char * | file, | |||
| char * | headfootname | |||
| ) |
Definition at line 171 of file grst_http.c.
References free(), GRSThttpCopy(), malloc(), NULL, p, rindex, S_ISDIR, stat, strcat(), and strcpy().
Referenced by GRSThttpPrintFooter(), and GRSThttpPrintHeader().
| char* GRSThttpUrlDecode | ( | char * | in | ) |
Definition at line 332 of file grst_http.c.
References i, j, malloc(), n, and out.
Referenced by recurse4dnlists().
| char* GRSThttpUrlEncode | ( | char * | in | ) |
Definition at line 371 of file grst_http.c.
References malloc(), out, p, and sprintf().
Referenced by GRSTx509CachedProxyFind(), GRSTx509CachedProxyKeyFind(), GRSTx509CacheProxy(), GRSTx509MakeProxyRequest(), GRSTx509ProxyDestroy(), and GRSTx509ProxyGetTimes().
| char* GRSThttpUrlMildencode | ( | char * | in | ) |
Definition at line 404 of file grst_http.c.
References malloc(), out, p, and sprintf().
Referenced by GRSTgaclCredAddValue(), and GRSTx509CompactToCred().
| void GRSThttpWriteOut | ( | GRSThttpBody * | thisbody | ) |
Definition at line 153 of file grst_http.c.
References GRSThttpBody::first, NULL, p, and GRSThttpBody::size.
1.5.1