Why modern curl versions cut off the #anchor part of the URL?

I have observed a curious behaviour between different curl versions. In CentOS 6 with curl 7.19.7 if I do curl 'localhost:9999/foo#bar' (nc listening on 9999) I get: GET /foo#bar HTTP/1.1 User-Ag...