public void addHeader(String key,String value){
  int pos;
  pos=m_HeaderKeys.indexOf(key);
  if (pos > -1) {
    m_HeaderValues.set(pos,value);
  }
 else {
    m_HeaderKeys.add(key);
    m_HeaderValues.add(value);
  }
}

public void addHeader ( String key , String value ) { int pos ; pos = m_HeaderKeys . indexOf ( key ) ; if ( pos > - 1 ) { m_HeaderValues . set ( pos , value ) ; } else { m_HeaderKeys . add ( key ) ; m_HeaderValues . add ( value ) ; } }
adds the key - value pair to the header .
