This line:

sockwrite -nt $sockname GET /mlb/scoreboard


should be like this:

sockwrite -nt $sockname GET /mlb/scoreboard HTTP/1.0

-genius_at_work