Added chkHttp Function and console log