GithubHelp home page GithubHelp logo

usi-ntw-a1's People

Contributors

aristeidisvrazitoulis avatar barreeeiroo avatar marinapapageorgiou avatar

Watchers

 avatar

usi-ntw-a1's Issues

404 Response

When receiving a GET request, if the response is 404, try to send a body. If the host folder contains a 404.html file, its content shall be sent as response body.

Task I: Working

Your code should be in a working state, without the need of modifications from the Instructors, and your submission must comply with the specified guidelines. Points will be deducted if the guidelines are not respected, if the code crashes, has compilation errors or does not execute, or if additional tools are needed for compilation/execution (like maven, gradle, etc.).

Task G: Response Codes

The server must answer client requests with the correct status code appropriate for the situation. Status codes 200, 201, 400, 403, 404, 405, 501 and 505 must be considered.

  • GET
  • PUT
  • DELETE
  • NTW22INFO

Task H: Port Number

The server must accept a port number as an argument and it must listen for connections on said port. Use port 8080 as default.

Requests not being generated properly

Sometimes, when issuing multiple requests, the request object is not being generated properly. For example, when issuing a GET request without a body, the server received a request object with a body (probably due to prior requests).

Unrecognized media types should return 415

If request is well formatted, GET method must return error 415 Unsupported Media Type if server cannot recognize the MIME type of such file (and, consequently, cannot generate the Content-Type header).

Task D: PUT

The server should be able to answer well-formed PUT requests as specified by the corresponding RFCs.

Task C: GET

The server should be able to answer well-formed GET requests as specified by the corresponding RFCs.

Task J: Documentation

Your code must be appropriately documented and your submission must include a README file as a report of your work. The report must include compilation and execution steps, plus a table of contributions.

Task F: NTW22INFO

The server should be able to answer to NTW22INFO requests as specified by the assignment.

Task E: DELETE

The server should be able to answer well-formed DELETE requests as specified by the corresponding
RFCs.

Task A: vhosts.conf

The server should be able to read from a vhosts.conf file the information regarding the sites it serves.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.