As with any files transferred using the Hypertext Transfer Protocol, web beacons are requested by sending the server their URL, and possibly the URL of the page containing them.
Web beacons can be used in combination with HTTP cookies like any other object transferred using the HTTP protocol.