In headspace sampling the sample (either a gas, a liquid, or a solid) is placed into the headspace vial, which is closed immediately and equilibrated and pressurized. An aliquot is then withdrawn from the closed vial and transferred directly to the gas chromatographic system or pre concentrated on a trap for focusing (in headspace trap only).