Multifrequency observations of extended radio galaxies. I - 3C310. II - B0844+31