version 1.207, 1999/10/11 13:52:48
|
version 1.208, 1999/10/22 09:09:39
|
Line 493 AHTReqContext *me;
|
Line 493 AHTReqContext *me;
|
TtaFreeMemory (me->outputfile); |
TtaFreeMemory (me->outputfile); |
} |
} |
|
|
|
/* the real name to which we are publishing */ |
|
if (me->default_put_name) |
|
TtaFreeMemory (me->default_put_name); |
|
|
/* @@ temp change for the %esc conversion */ |
/* @@ temp change for the %esc conversion */ |
if (me->method == METHOD_PUT && me->urlName) |
if (me->method == METHOD_PUT && me->urlName) |
TtaFreeMemory (me->urlName); |
TtaFreeMemory (me->urlName); |
Line 947 static int check_handler (HTRequest * re
|
Line 951 static int check_handler (HTRequest * re
|
/* start with a new, clean request structure */ |
/* start with a new, clean request structure */ |
HTRequest_delete (me->request); |
HTRequest_delete (me->request); |
me->request = HTRequest_new (); |
me->request = HTRequest_new (); |
|
/* add the default PUT name */ |
|
HTRequest_setDefaultPutName (me->request, me->default_put_name); |
/* clean the associated file structure) */ |
/* clean the associated file structure) */ |
HTRequest_setOutputStream (me->request, NULL); |
HTRequest_setOutputStream (me->request, NULL); |
/* Initialize the other members of the structure */ |
/* Initialize the other members of the structure */ |
Line 983 static int check_handler (HTRequest * re
|
Line 989 static int check_handler (HTRequest * re
|
/* get a new, clean request structure */ |
/* get a new, clean request structure */ |
HTRequest_delete (me->request); |
HTRequest_delete (me->request); |
me->request = HTRequest_new (); |
me->request = HTRequest_new (); |
|
/* add the default PUT name */ |
|
HTRequest_setDefaultPutName (me->request, me->default_put_name); |
/* clean the associated file structure) */ |
/* clean the associated file structure) */ |
HTRequest_setOutputStream (me->request, NULL); |
HTRequest_setOutputStream (me->request, NULL); |
/* Initialize the other members of the structure */ |
/* Initialize the other members of the structure */ |
Line 2281 void QueryInit ()
|
Line 2289 void QueryInit ()
|
#endif /* _GTK */ |
#endif /* _GTK */ |
#endif /* !_WINDOWS */ |
#endif /* !_WINDOWS */ |
|
|
/*** @@@@ |
strptr = TtaGetEnvString ("ENABLE_LIBWWW_DEBUG"); |
WWW_TraceFlag = 0; |
if (strptr && *strptr) |
***/ |
WWW_TraceFlag = SHOW_PROTOCOL_TRACE; |
|
else |
|
WWW_TraceFlag = 0; |
|
|
#ifdef DEBUG_LIBWWW |
#ifdef DEBUG_LIBWWW |
/* forwards error messages to our own function */ |
/* forwards error messages to our own function */ |
WWW_TraceFlag = THD_TRACE; |
WWW_TraceFlag = THD_TRACE; |
Line 3012 void *context_tcbf;
|
Line 3023 void *context_tcbf;
|
return (HT_ERROR); |
return (HT_ERROR); |
} |
} |
|
|
|
/* |
|
** Set up the original URL name |
|
*/ |
|
if (DocumentMeta[docid]->put_default_name) |
|
{ |
|
char *ptr1, *ptr2; |
|
ptr1 = TtaGetEnvString ("DEFAULTNAME"); |
|
if (ptr1 && *ptr1) |
|
{ |
|
ptr2 = strstr (urlName, ptr1); |
|
if (ptr2) |
|
{ |
|
me->default_put_name = TtaStrdup (urlName); |
|
me->default_put_name[strlen (me->default_put_name) |
|
- strlen (ptr1)] = EOS; |
|
HTRequest_setDefaultPutName (me->request, me->default_put_name); |
|
} |
|
} |
|
} |
|
|
me->mode = mode; |
me->mode = mode; |
me->incremental_cbf = (TIcbf *) NULL; |
me->incremental_cbf = (TIcbf *) NULL; |
me->context_icbf = (void *) NULL; |
me->context_icbf = (void *) NULL; |