fix not recive all records && add httpserver func