http/1.0

I need code for http/1.0.The code should be in
c or c++ to be compiled by gcc.From where i can get that ?
rajivkr_iiitaAsked:
Who is Participating?
 
qwaleteeCommented:
Apache.  That's it.  You get the whole web server, source code and all.  Look for an old version if you want something relatively simple.
0
 
qwaleteeCommented:
Or are you looking for code that retrieves from HTTP?  That's incredibly easy -- you open a socket on port 80 to whatever host you want, and issue basic HTTP headers:

GET /relativeUrlPath HTTP/1.0
HOST: UsuallyDoesNotMatter

Then a black line, and wait for response.  You can add other headers if you like, but they are not typically needed.
0
 
rajivkr_iiitaAuthor Commented:
I need code for server.
0
 
liddlerCommented:
As qwaletee said Apache is the server - download it from http://httpd.apache.org/download.cgi
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.