Added ns_connect_http() helper function

was this supposed to contain something?