In this paper, we introduce a pulse characterization technique that is free of phasematching constraints, exploiting transient absorption in solids as an ultrafast optical switch. Based on a pump-probe setup, this technique uses pump pulses of sufficient intensity to induce the switch, while the pulses to characterize are probing the transmissivity drop of the photoexcited material. This enables the characterization of low-intensity ultra-broadband pulses at the detection limit of the spectrometer, and within the transparency range of the solid. For example, by using zinc selenide (ZnSe), pulses with wavelengths from 0.5 to 20 µm can be characterized, denoting five octaves of spectral range. Using ptychography, we retrieve the temporal profiles of both the probe pulse and the switch. To demonstrate this approach, we measure ultrashort pulses from a titanium-sapphire (Ti-Sa) amplifier which are compressed using a hollow core fiber setup, as well as infrared to mid-infrared pulses generated from an optical parametric amplifier (OPA). The characterized pulses are centered at wavelengths of 0.77, 1.53, 1.75, 4, and 10 µm, down to sub-two optical cycles duration, exceeding an octave of bandwidth, and with energy as low as a few nanojoules.