fix some bug for http
fix continue to post bug after reading ssl failed