The structure of the common envelope in a close binary system