change date parsing and use apache http client