On the sender side, there would need to be a "smell microphone" to inhale and encode smells based on chemical properties. The data can be transmitted over HTTP or another transfer protocol.
On the receiver side, there would be a "smell speaker" (and maybe amplifier) that decodes and exhales the smell.
I can imagine various technical challenges on both ends, specifically chemical analysis and synthesis on a small enough scale to be practical.
EDIT: This page has a history of such attempts, most recently Aromajoin with "the first wearable scent device" in 2016.