final public void removeOutgoingCookies()
{
  if(hasCookie==false) return;
  // scan and kill c00kie header
  String s,s1;
  int cachedsize=headers.size();

  for(int i=0;i<cachedsize;i++)
  {
    int j;
    s=headers.get(i);
    j=s.indexOf(':',0);
    if(j==-1) continue;
    s1=s.substring(0,j).toLowerCase();
    if(s1.equals("cookie")) 
    {
       if(trace_cookie)
	       System.out.println("[TRACE "+Thread.currentThread().getName()+"] @ Unallowed outgoing cookie!");
       if(wafer==null)
       {
           headers.remove(i--);
           cachedsize--;
       }
       else
       {
	   headers.set(i,wafer);
       }
       continue;
    }
 }
}