Optical near-field measurement for spin-orbit interaction of light