forked from UTAP/APHTTP
-
Notifications
You must be signed in to change notification settings - Fork 1
Compile and Run
h@di edited this page Jan 10, 2019
·
2 revisions
There is an example main.cpp under examples directory. Also, makefile is provided for that example. After installing a c++ compiler, specially g++
, run make
in project folder and run ./myserver.out
to start application. Also, You can specify port number like ./myserver.out 5000
. While running server.out, application is available at http://localhost:5000
at your machine. In addition, a make clean
command is provided in makefile.
Write your own makefile based on the provided one for your project.
AP HTTP
University of Tehran / Advanced Programming
- Quick How-to & Examples
- Creating a New Server
-
Request Handlers
- Serving Static Files
- Serving Dynamic Files
- Getting Data from Client-side
- Redirection
- Serving Template Files
- Template Files
-
Request
- Request-Line
- Query
- Haeder
- Body
-
Response
- Status-Line
- Header
- Body
- Session
- Utilities
- Compile and Run