An extrapolation problem for harmonic functions