Document content
1GCC – C Language Project
Subject Delivery
Version 1.0 Last update: 01/01/2018 Use: Students/Staff Author: SAD
SUPINFO Academic Dept.
C Language
Project
Conditions d’utilisations : SUPINFO International University vous permet de partager ce document. Vous êtes libre de :
- Partager — reproduire, distribuer et communiquer ce document
- Remixer — modifier ce document
A condition de respecter les règles suivantes :
Indication obligatoire de la paternité — Vous devez obligatoirement préciser l’origine « SUPINFO » du document au début de celui-ci de la même manière qu’indiqué par SUPINFO International University – Notamment en laissant obligatoirement la première et la dernière page du document, mais pas d’une manière qui suggérerait que SUPINFO International University vous soutiennent ou approuvent votre utilisation du document, surtout si vous le modifiez. Dans ce dernier cas, il vous faudra obligatoirement supprimer le texte « SUPINFO Official Document » en tête de page et préciser notamment la page indiquant votre identité et les modifications principales apportées.
En dehors de ces dispositions, aucune autre modification de la première et de la dernière page du document n’est autorisée.
NOTE IMPORTANTE : Ce document est mis à disposition selon le contrat CC-BY-NC-SA Creative Commons disponible en ligne http://creativecommons.org/licenses ou par courrier postal à Creative Commons, 171 Second Street, Suite 300, San Francisco, California 94105, USA modifié en ce sens que la première et la dernière page du document ne peuvent être supprimées en cas de reproduction, distribution, communication ou modification. Vous pouvez donc reproduire, remixer, arranger et adapter ce document à des fins non commerciales tant que vous respectez les règles de paternité et que les nouveaux documents sont protégés selon des termes identiques. Les autorisations au-delà du champ de cette licence peuvent être obtenues à support@supinfo.com.
© SUPINFO International University – EDUCINVEST – Rue Ducale, 29 – 1000 Brussels Belgium . www.supinfo.com
Page 2 sur 5
© SUPINFO International University – http://www.supinfo.com
C Language
Project
SOMMAIRE
- 1 CONTEXT …………………………………………………………………………………………… 4
- 2 SPECIFICATIONS………………………………………………………………………………….. 4
- 3 INSTRUCTIONS……………………………………………………………………………………. 5
- 4 RETURN …………………………………………………………………………………………….. 5
Page 3 sur 5
© SUPINFO International University – http://www.supinfo.com
SupHttp is a web server. A company needs your help to develop its. Because it needs to be powerful you naturally choose to use the C Language.
SupHTTP works as follows :
C Language
Project
1 CONTEXT
The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative,
hypermedia information systems. HTTP is the foundation of data communication for the World Wide
Web.
HTTP functions as a request-response protocol in the client-server computing model. A web
browser, for example, may be the client and an application running on a computer hosting a web
site may be the server. The client submits an HTTP request message to the server. The server, which
provides resources such as HTML files and other content, or performs other functions on behalf of
the client, returns a response message to the client. The response contains completion status
information about the request and may also contain requested content in its message body.
https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
For this exercise, only GET requests:
A GET Request is a representation of the specified resource.
Objective:
You must create a server web to display you curiculum vitae.
A request in this server GET / must send a html page of your curiculum vitae.
Your curiculum vitae must contain a picture.
If you want, you can add CSS to agreement the style of your page. It’s an option.
2 SPECIFICATIONS
- Use only port 80 (default for Apache)
- Use GET requests only
- Send a html page of a curiculum vitae
- Send a picture include in the curiculum vitae page.
- Server must use the select() function to manage many clients simultaneously
- You server run with an http request from Chrome Web browser
Page 4 sur 5
© SUPINFO International University – http://www.supinfo.com
C Language
Project
3 INSTRUCTIONS
- Plagiarism is forbidden.
- Course are authorized
- Internet is authorized
- Make accessible his code on a public sharing platform (as GitHub) before the end of the
evaluation is forbidden.
Don’t abiding by these rules will result in suspension of your assessment and will be considered cheating.
Functionalities
Points
Server listen the port 80 2
Server send an html page on request GET / 3
Server manage many clients simultaneously 4 A picture is in the html page 3 Server can send the picture to the browser 3 Server can send a css file (bonus) 2 Server is compatible with chrome browser 2 Code Quality & Conventions 3
4 RETURN
Return your graded exercise as a ZIP archive .
Not following this convention will result in point loss.
TOTAL
22/20
You will send the archive before the end of the evaluation. After that delay, your graded exercise will not be corrected and the mark 0 will be assigned to you.
Page 5 sur 5
© SUPINFO International University – http://www.supinfo.com