67 |
static void |
static void |
68 |
dgee_init( server_rec *s, pool *p ) |
dgee_init( server_rec *s, pool *p ) |
69 |
{ |
{ |
70 |
char *sname = s->server_hostname; |
char *sname; |
71 |
|
sname = s->server_hostname; |
72 |
|
|
73 |
ap_add_version_component("DotGnu/"DGVERSION ); |
ap_add_version_component("(DotGNU/"DOTGNUVERSION" mod_dgee/"DGVERSION")" ); |
74 |
} |
} |
75 |
|
|
76 |
/* ------------------------------------------------------------------------- */ |
/* ------------------------------------------------------------------------- */ |
78 |
static void |
static void |
79 |
dgee_cleanup( server_rec *s, pool *p ) |
dgee_cleanup( server_rec *s, pool *p ) |
80 |
{ |
{ |
81 |
char *sname = s->server_hostname; |
char *sname; |
82 |
|
sname = s->server_hostname; |
83 |
|
|
84 |
gw_release(1); /* Drop connection to Goldwater application (1 = forced) */ |
gw_release(1); /* Drop connection to Goldwater application (1 = forced) */ |
85 |
} |
} |
113 |
static const char * |
static const char * |
114 |
set_gwconfig(cmd_parms *cmd, void *dummy, char *arg) |
set_gwconfig(cmd_parms *cmd, void *dummy, char *arg) |
115 |
{ |
{ |
116 |
long len = 0; |
/* long len = 0; */ |
117 |
int ix = 0; |
/* int ix = 0; */ |
118 |
char path[128] = {0}; |
/* char path[128] = {0}; */ |
119 |
char *ep= NULL; |
char *ep= NULL; |
120 |
server_rec *s = cmd->server; |
server_rec *s = cmd->server; |
121 |
|
|
283 |
|
|
284 |
r->content_type = cont_type; |
r->content_type = cont_type; |
285 |
ap_table_set(r->headers_out,"Content-Length", lenstr ); |
ap_table_set(r->headers_out,"Content-Length", lenstr ); |
286 |
ap_table_set(r->headers_out,"X-DGEE-Server", "DotGNU/"DGVERSION";" ); |
ap_table_set(r->headers_out,"X-DGEE-Server", "DGEE/"DGVERSION";" ); |
287 |
|
|
288 |
|
|
289 |
ap_send_http_header(r); |
ap_send_http_header(r); |
316 |
char *ctype = NULL; |
char *ctype = NULL; |
317 |
char *xml = NULL; |
char *xml = NULL; |
318 |
char *URI = NULL; |
char *URI = NULL; |
319 |
char *ARG = NULL; |
/* char *ARG = NULL; */ |
320 |
|
|
321 |
long clen = 0; |
/* long clen = 0; */ |
322 |
long len = 0; |
long len = 0; |
323 |
int ret = 0; |
int ret = 0; |
324 |
|
|
374 |
/* Add URI and request XML to buffer |
/* Add URI and request XML to buffer |
375 |
*/ |
*/ |
376 |
gwmc_add_data( request, DGF_REQ_URI, MIME_TEXT_PLAIN, URI, strlen(URI) ); |
gwmc_add_data( request, DGF_REQ_URI, MIME_TEXT_PLAIN, URI, strlen(URI) ); |
377 |
gwmc_add_data( request, DGF_REQ_DATA, MIME_TEXT_PLAIN, CSStart(bufferCS), CSLen(bufferCS) ); |
gwmc_add_data( request, DGF_REQ_DATA, MIME_TEXT_XML, CSStart(bufferCS), CSLen(bufferCS) ); |
378 |
|
|
379 |
free_cstring( &bufferCS ); |
free_cstring( &bufferCS ); |
380 |
|
|
425 |
sprintf( lenstr, "%ld", len ); |
sprintf( lenstr, "%ld", len ); |
426 |
|
|
427 |
ap_table_set(r->headers_out,"Content-Length", lenstr ); |
ap_table_set(r->headers_out,"Content-Length", lenstr ); |
428 |
ap_table_set(r->headers_out,"X-DGEE-Server", "DotGNU/"DGVERSION";" ); |
ap_table_set(r->headers_out,"X-DGEE-Server", "DGEE/"DGVERSION";" ); |
429 |
|
|
430 |
ap_send_http_header(r); |
ap_send_http_header(r); |
431 |
|
|
458 |
case M_POST: |
case M_POST: |
459 |
return dgee_call_service(r); |
return dgee_call_service(r); |
460 |
|
|
461 |
default: |
/* default: */ |
462 |
|
/* keep gcc happy */ |
463 |
} |
} |
464 |
|
|
465 |
return HTTP_BAD_REQUEST; |
return HTTP_BAD_REQUEST; |