Problem downloading some urls with cURL on OSX
Have you tried running

brew update


and 

brew updgrade


before

brew install homebrew/science/gmt


Usually many problems with formulas may be solved by simply updating &amp; upgrading homebrew and its formulas!