Hi, I'm trying to write simple server using BSD Sockets, the server should listen for HTTP GET request which comes from wget, incase you do not know, wget is a tool used on unix to get a file from server. I did the following:

1- I made a simple server that just prints the request of the wget command, so i used wget as a client with the following command:
wget http://127.0.0.1:3001/test.html
and I ran my server using the following command
myserver 3001

The server recieved the following from wget:
ET /test.html HTTP/1.0
User-Agent: Wget/1.8.2
Host: 127.0.0.1:3001
Accept: */*
Connection: Keep-Alive

2- So now my server program knows what is the file that wget wants, but i do not know how the file can be sent to wget, if you know the solution of this problem I will be very thankful to you.