example program to send spectra data to redist server