Prostaglandin E2 raises the temperature the brain holds you at. Fever reducers such as ibuprofen block the enzymes that make it, lowering it in the brain, a medical reference says.
The fever reference says other routes have been suggested for fever reducers, so this is the main account rather than the only one. It does not say how a swallowed drug reaches the hypothalamus.