A HTTP server in C++ 98.
malop47 / webserv_42 Goto Github PK
View Code? Open in Web Editor NEWA HTTP server in C++ 98.
A HTTP server in C++ 98.
Testing branch
I changed the decodeUri function because for GET variable, " " (space) is replace by a "+". But I didn't check if a "+" in file is replaced by %(hex code). If this is the case, no problem, but I'm not sure...
I had errors of size with empty string allocated. Worth talking about it if used elsewhere.
After a submit form with GET, the uri is something like this :
http://127.0.0.1:8080/index.html?fname=sd&lname=sdsd
We need to remove everything after the "?" to know which file to send back to the client
Create a config file to test our program
In order to map right index or location block, variable might be set as a whole path linking root + locname or root + index...
Need to implement DELETE methode
ATM only '#" is considered invalid if found in config file, we might need to add up
When users send file(s), they are saved in the webserv folder (not the one in the config file)
Si (par exemple) maxbodysize est défini dans le bloc server mais pas dans le bloc location, le maxbodysize du server fait foi ?
Je vais refactor une bonne partie de HttpResponse pour gerer correctement les Locations, actuellement je me base que sur les parametres generaux du server je ne fais pas attention aux differentes Locations si elles existent.
Juste pour dire que HttpResponse et peut etre HttpRequest vont pas mal changer (si jamais vous bosser actuellement dessus)
I'm working on directory listing...
comme dit dans le sujet :
The first server for a host:port will be the default for this host:port (that means
it will answer to all the requests that don’t belong to an other server)
Comme dit dans le sujet :
Execute CGI based on certain file extension (for example .php)
Exceptions are thrown in several precise cases, few are missing ATM.
Il y a un vrai probleme dans la classe Webserv. Ecouter sur le meme port ne devrait pas etre un probleme. hors, epoll est pas content, et du coup le server plante. (pour tester j'ai juste enlever le throw en cas de doublons de ports). Faut que je remette le nez dedans... mais a mon avis, c'est un vrai pb et la maniere global de fonctionnement du serveur est a revoir....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.