The charge transport through GaAs nanowires, partially p-doped and partially intrinsic, is analyzed by four-point resistance profiling along freestanding nanowires using a multip-STM. The charge transport channel in the undoped segment is assigned to the surface conductivity, while the interior of the nanowire is the conductance channel in the p-doped segment. The convoluted interplay between conduction through the interior of the nanowire and surface state conduction is studied in detail. Measurements of the I-V curves along the nanowires provide the experimental basis for the proposed charge transport model for the transition of the conduction from the interior to the surface of the nanowire. A voltage drop along the surface state conduction channel leads to an upward shift of the band edges at the surface. This results, for higher applied voltages, in the removal of the depletion layer and an opening of a conductance channel between the interior of the nanowire and the surface states.