curl to localhsot