Diff for /Amaya/amaya/query.c between versions 1.96 and 1.97

version 1.96, 1997/11/13 23:53:03 version 1.97, 1997/12/02 16:03:37
Line 1080  static void         AHTAlertInit () Line 1080  static void         AHTAlertInit ()
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
     ProxyInit
     Reads any proxies settings which may be declared as environmental
     variables or in the thot.ini file. The former overrides the latter.
     ----------------------------------------------------------------------*/
   static void ProxyInit (void)
   {
     char *strptr;
     char *str = NULL;
     char *name;
   
     /* get the proxy settings from the thot.ini file */
     strptr = (char *) TtaGetEnvString ("HTTP_PROXY");
     if (strptr && *strptr)
       HTProxy_add ("http", strptr);
     /* get the no_proxy settings from the thot.ini file */
     strptr = (char *) TtaGetEnvString ("NO_PROXY");
     if (strptr && *strptr) 
       {
         str = TtaStrdup (strptr);          /* Get copy we can mutilate */
         strptr = str;
         while ((name = HTNextField (&strptr)) != NULL) {
           char *portstr = strchr (name, ':');
           unsigned port=0;
           if (portstr) {
             *portstr++ = '\0';
             if (*portstr) port = (unsigned) atoi(portstr);
           }
           /* Register it for all access methods */
           HTNoProxy_add (name, NULL, port);
         }
         TtaFreeMemory (str);
       }
     
     /* use libw3's routine to get all proxy settings from the environment */
      HTProxy_getEnvVar ();
   
   }
   
   
   /*----------------------------------------------------------------------
   AHTProfile_newAmaya    AHTProfile_newAmaya
   creates the Amaya client profile for libwww.    creates the Amaya client profile for libwww.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
Line 1117  char               *AppVersion; Line 1157  char               *AppVersion;
    /* Set up the default set of Authentication schemes */     /* Set up the default set of Authentication schemes */
    HTAAInit ();     HTAAInit ();
   
    /* Get any proxy or gateway environment variables */     /* Get any proxy settings */
    HTProxy_getEnvVar ();     ProxyInit ();
   
    /* Register the default set of converters */     /* Register the default set of converters */
    AHTConverterInit (converters);     AHTConverterInit (converters);

Removed from v.1.96  
changed lines
  Added in v.1.97


Webmaster