http without callback function