added debugs for http requsts.