support simplehttp class using socket