We have observed in the near and mid infrared a sample of high mass young stellar objects in
order to understand the mechanisms of formation of these sources. In particular we have searched
for the H2 shocks. From their spectral energy distributions obtained combining observations at
different wavelengths, we have obtained the physical parameters such as the mass accretion rate,
the disk mass and the luminosity of these source.