simple http client/server pasted in