Link to home
Start Free TrialLog in
Avatar of rajivkr_iiita
rajivkr_iiita

asked on

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 ?
ASKER CERTIFIED SOLUTION
Avatar of qwaletee
qwaletee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of qwaletee
qwaletee

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.
Avatar of rajivkr_iiita

ASKER

I need code for server.
As qwaletee said Apache is the server - download it from http://httpd.apache.org/download.cgi