HTTP doesn't work, HTTPS does
Try typing "curl -v http://domain.com" and see if you can fetch the page that way. Try a few different sites, to rule out one specific site being down.

Also, try confirming there's no proxy set by using:
networksetup -getwebproxy Wi-Fi  (if you're connected via wifi)