A new technique for determining the complex electric field of an ultrashort light pulse is analyzed and experimentally demonstrated. It is based on the measurement of the spectrally resolved intensity autocorrelation and an iterative procedure of data deconvolution. This method is shown to be convenient and reliable.