We have implemented a new approach for measuring the time-dependent intensity and phase of ultrashort optical pulses. It is based on the interaction between shaped pulses and atoms, leading to coherent transients.