bug fixes; composed examples/http-get.c