change url = localhost to test php
add a server class to handle request