gbStartTickCounter = TRUE;
int DownloadViaHTTP(char *szUrl){  int  rv;  char *file = NULL;  if((!szUrl) || (*szUrl == '\0'))    return nsHTTPConn::E_PARAM;  if(connHTTP == NULL)  {    rv = DownloadViaHTTPOpen(szUrl);    if(rv != nsHTTPConn::OK)    {      DownloadViaHTTPClose();      return(rv);    }  }  if(connHTTP == NULL)  {    char szBuf[MAX_BUF_TINY];    GetPrivateProfileString("Strings", "Error Out Of Memory", "", szBuf, sizeof(szBuf), gszConfigIniFile);    PrintError(szBuf, ERROR_CODE_HIDE);    return(WIZ_OUT_OF_MEMORY);  }    rv = nsHTTPConn::OK;  if(strrchr(szUrl, '/') != (szUrl + strlen(szUrl)))    file = strrchr(szUrl, '/') + 1; // set to leaf name  rv = connHTTP->Get(ProgressCB, file);  DownloadViaHTTPClose();  return(rv);}