download demo with http request implement by socket in c