Diff for /Amaya/amaya/query.c between versions 1.235 and 1.236

version 1.235, 2000/02/25 17:05:45 version 1.236, 2000/03/02 10:45:00
Line 2513  char **value; Line 2513  char **value;
   PrepareFormdata    PrepareFormdata
   ---------------------------------------------------------------------*/    ---------------------------------------------------------------------*/
 #ifdef __STDC__  #ifdef __STDC__
 static HTAssocList * PrepareFormdata (char* string)  static   HTAssocList * PrepareFormdata (CHAR_T* string)
 #else  #else
 static HTAssocList * PrepareFormdata (string)  static   HTAssocList * PrepareFormdata (string)
 char*  string;  CHAR_T*  string;
 #endif /* __STDC__ */  #endif /* __STDC__ */
 {  {
   char*        tmp_string, *tmp_string_ptr;    char*        tmp_string, *tmp_string_ptr;
Line 2530  char*  string; Line 2530  char*  string;
   /* store the ptr in another variable, as the original address will    /* store the ptr in another variable, as the original address will
      change       change
      */       */
     
   tmp_string_ptr = tmp_string = TtaStrdup (string);    tmp_string_ptr = TtaGetMemory (ustrlen (string) + 1);
     tmp_string = tmp_string_ptr;
     wc2iso_strcpy (tmp_string_ptr, string);
   formdata = HTAssocList_new();    formdata = HTAssocList_new();
       
   while (*tmp_string)    while (*tmp_string)
Line 2545  char*  string; Line 2547  char*  string;
   return formdata;    return formdata;
 }  }
   
   /*----------------------------------------------------------------------
     ---------------------------------------------------------------------*/
 #ifdef __STDC__  #ifdef __STDC__
 void AHTRequest_setCustomAcceptHeader (HTRequest *request, char *value)  void AHTRequest_setCustomAcceptHeader (HTRequest *request, char *value)
 #else  #else
Line 2720  CHAR_T*       content_type; Line 2724  CHAR_T*       content_type;
    int                 status, l;     int                 status, l;
    int                 tempsubdir;     int                 tempsubdir;
    ThotBool            bool_tmp;     ThotBool            bool_tmp;
    char                frm_data[MAX_LENGTH];  
   
    if (urlName == NULL || docid == 0 || outputfile == NULL)      if (urlName == NULL || docid == 0 || outputfile == NULL) 
      {       {
Line 2921  CHAR_T*       content_type; Line 2924  CHAR_T*       content_type;
      }        } 
   
    /* create the formdata element for libwww */     /* create the formdata element for libwww */
    if (formdata && ! (mode & AMAYA_FILE_POST)) {     if (formdata && ! (mode & AMAYA_FILE_POST))
       wc2iso_strcpy (frm_data, formdata);          me->formdata = PrepareFormdata (formdata);
       me->formdata = PrepareFormdata (frm_data);  
    }  
   
    /* do the request */     /* do the request */
    if (mode & AMAYA_FORM_POST)     if (mode & AMAYA_FORM_POST)

Removed from v.1.235  
changed lines
  Added in v.1.236


Webmaster