While the near-infrared wavelength regime is becoming more and more important for astrophysics there is a marked lack of spectrophotometric standard star data that would allow the flux calibration of such data. Furthermore, flux calibrating medium- to high-resolution echelle spectroscopy data is challenging even in the optical wavelength range, because the available flux standard data are often too coarsely sampled. We will provide standard star reference data that allow users to derive response curves from 300nm to 2500nm for spectroscopic data of medium to high resolution, including those taken with echelle spectrographs. In addition we describe a method to correct for moderate telluric absorption without the need of observing telluric standard stars. As reference data for the flux standard stars we use theoretical spectra derived from stellar model atmospheres. We verify that they provide an appropriate description of the observed standard star spectra by checking for residuals in line cores and line overlap regions in the ratios of observed (X-shooter) spectra to model spectra. The finally selected model spectra are then corrected for remaining mismatches and photometrically calibrated using independent observations. The correction of telluric absorption is performed with the help of telluric model spectra.We provide new, finely sampled reference spectra without telluric absorption for six southern flux standard stars that allow the users to flux calibrate their data from 300 nm to 2500 nm, and a method to correct for telluric absorption using atmospheric models.