use okhttp to replace raw http code.