Petroleum hydrocarbons with a sulfur content of less than 10 mg/kg in the boiling range -10 to 220 degree C. The method is intended especially for chlorine contents between 1 and 15 mg/kg, but can also be used for higher contents. If present, the halogens bromine and iodine are also detected.