version 1.221, 1999/12/24 09:54:45
|
version 1.222, 2000/01/21 14:04:50
|
Line 2813 STRING content_type;
|
Line 2813 STRING content_type;
|
} |
} |
|
|
/* Specific initializations for POST and GET */ |
/* Specific initializations for POST and GET */ |
if (mode & AMAYA_FORM_POST) |
if (mode & AMAYA_FORM_POST |
|
#ifdef ANNOTATIONS |
|
|| mode & AMAYA_ANNOT_POST |
|
#endif /* ANNOTATIONS */ |
|
) |
{ |
{ |
me->method = METHOD_POST; |
me->method = METHOD_POST; |
HTRequest_setMethod (me->request, METHOD_POST); |
HTRequest_setMethod (me->request, METHOD_POST); |
Line 2932 STRING content_type;
|
Line 2936 STRING content_type;
|
me->request); |
me->request); |
status = posted ? YES : NO; |
status = posted ? YES : NO; |
} |
} |
|
#ifdef ANNOTATIONS |
|
if (mode & AMAYA_ANNOT_POST) |
|
{ |
|
/* @@@ a very ugly patch :))) */ |
|
HTParentAnchor * posted = NULL; |
|
|
|
me->source = HTAnchor_findAddress (DocumentURLs[docid]); |
|
HTAnchor_setFormat (HTAnchor_parent (me->source), |
|
HTAtom_for ("application/xml")); |
|
posted = HTPostAnchor (HTAnchor_parent (me->source), |
|
(HTAnchor *) me->anchor, |
|
me->request); |
|
status = posted ? YES : NO; |
|
} |
|
#endif /* ANNOTATIONS */ |
else if (formdata) |
else if (formdata) |
status = HTGetFormAnchor(me->formdata, (HTAnchor *) me->anchor, |
status = HTGetFormAnchor(me->formdata, (HTAnchor *) me->anchor, |
me->request); |
me->request); |
Line 3076 void *context_tcbf;
|
Line 3095 void *context_tcbf;
|
} |
} |
|
|
fstat (fd, &file_stat); |
fstat (fd, &file_stat); |
# ifdef _WINDOWS |
#ifdef _WINDOWS |
_close (fd); |
_close (fd); |
# else /* _WINDOWS */ |
#else /* _WINDOWS */ |
close (fd); |
close (fd); |
# endif /* _WINDOWS */ |
#endif /* _WINDOWS */ |
|
|
if (file_stat.st_size == 0) |
if (file_stat.st_size == 0) |
{ |
{ |