hugogogo
11f71ea74f
wip parsing first line http message with new utils functions
2022-08-10 20:27:48 +02:00
hugogogo
9a379c835d
correction of trim in case of str only fill with delim char
...
+ added a new split, that also does trim, to split without counting newlines
2022-08-10 20:01:23 +02:00
hugogogo
c7905ebd19
changed del_line_in_str to etract_line
2022-08-10 17:12:28 +02:00
hugogogo
17230ccc42
in cgi exec add save stdin and out
2022-08-10 16:24:24 +02:00
LuckyLaszlo
86f7740984
Moved most request errors check in Client
...
+ bugfix of "Bad file descriptor" due to empty operator=() in Client
+ added a condition in _determine_location_COOP_FIX()
+ udpate memo.txt
+ need fix for index/autoindex (location "/list" dont work)
2022-08-10 07:19:05 +02:00
Me
58f67bf42e
fixed a tiny mistake in location picker
2022-08-10 02:07:17 +02:00
Me
f7f3e42b15
Merge remote-tracking branch 'origin/master' into eric_config_parser
2022-08-10 01:59:39 +02:00
Me
8e90221058
location picker works, needs to be tested more tho
2022-08-10 01:59:10 +02:00
LuckyLaszlo
f393aa46bf
BUG: "Bad file descriptor" in _close_all_clients()
2022-08-09 22:29:35 +02:00
LuckyLaszlo
1eb989a3fd
_determine_location() new version (to complete and test)
2022-08-09 20:47:21 +02:00
Me
56f4cf7e15
Eric notes to self
2022-08-09 20:06:28 +02:00
hugogogo
482a38952e
Merge branch 'hugo2'
...
+ changed the appropriate getters for client
+ moved the functions to parse the http message
(first line, headers, and body)
outside client, in parsing_http_message.cpp
+ resolved some of the throw problems
2022-08-09 15:54:40 +02:00
hugogogo
53a548e314
wip script output verification working
...
+ trim secure pos segfault
+ concat script message with server message
2022-08-09 14:57:05 +02:00
hugogogo
3dad938e3c
add extern function for http message parsing
...
+ wip compare fields server and script
+ g tout cassey
2022-08-09 11:19:46 +02:00
Me
1d3cdef7a6
Merge remote-tracking branch 'origin/master' into eric_config_parser
2022-08-09 02:38:09 +02:00
Me
97c90236b9
cgi_ext, redirect and upload_repo now functional in config, fixed location picker, some cleanup
2022-08-09 02:37:28 +02:00
LuckyLaszlo
643b09c4f7
_request() and _response() refactoring
...
+ Wip redirection (weird behavior)
+ 505 HTTP Version Not Supported
2022-08-09 01:46:59 +02:00
LuckyLaszlo
a44b9b493a
split respone.cpp file
2022-08-08 20:36:01 +02:00
hugogogo
e1a68bc3e4
changes var in client
2022-08-08 18:06:41 +02:00
Me
7fdc81f5f4
a bit messy but merged index and autoindex work
2022-08-08 17:13:55 +02:00
hugogogo
f10931042f
rewrite readme cgi todo list
2022-08-08 16:16:11 +02:00
hugogogo
972f52ebc8
client variables are const ref
2022-08-08 15:36:16 +02:00
Me
0a72778c8c
successful merge?
2022-08-08 15:25:16 +02:00
hugogogo
da1f4b6e37
cgi exec compare with file method
2022-08-08 13:20:06 +02:00
LuckyLaszlo
02cfdf43bc
bad_alloc handling
...
+ map.insert() replace map.operator[] for init, more efficient
2022-08-08 04:24:03 +02:00
Me
9ee7205b95
Index and Autoindex work nicely, standarized way paths for root and location path are stored in config, still needs a little polishing prolly
2022-08-08 02:50:37 +02:00
Me
cf69168a84
some cleanup of config stuff
2022-08-07 22:54:58 +02:00
hugogogo
63365a9067
cgi_script read and write on a string
2022-08-07 22:33:39 +02:00
Me
94852babc6
autoindex is working, a few things to iron out be we well on our way
2022-08-07 22:25:24 +02:00
Me
f777441edf
autoindex in progress but need to check stuff on master branch
2022-08-07 20:37:53 +02:00
LuckyLaszlo
1ccf61bc68
assign server and location to client in _read_request()
2022-08-07 17:37:24 +02:00
hugogogo
7ecfc22c7b
script path is found and fill
2022-08-07 15:51:36 +02:00
hugogogo
e0fd743b5b
key fields headers in map are in lowercase
...
+ getters for this map are case insensitive
+ change request fiel 'path' for 'uri', 'query', and 'abs_path'
2022-08-07 13:07:50 +02:00
LuckyLaszlo
4ab099ee4d
redone _read_request(). Should work with any BUFSIZE.
...
+ WIP in some aspects. Need to adjust parse_request() among others things.
+ update memo.txt
2022-08-07 05:41:01 +02:00
Me
4870b2c05d
Location sorter works, fixed the compilation error i was having on this branch, now working on autoindex
2022-08-07 03:24:49 +02:00
LuckyLaszlo
8ec1353723
fixed response.append(body) problem.
...
+ File I/O working but maybe not perfect (it seems complicated to do it with std::filebuf)
+ fixed Content-Type for unknown file extension
2022-08-07 01:38:33 +02:00
Me
4b1baca126
merged, seems fine
2022-08-07 01:10:05 +02:00
hugogogo
63ff42b57d
client variables are made const
2022-08-06 19:58:09 +02:00
hugogogo
6f171ec07b
wip cgi env variables
2022-08-06 11:34:48 +02:00
LuckyLaszlo
b0df37df60
fix Client uninitialised values
2022-08-06 04:50:19 +02:00
LuckyLaszlo
05c7faf1f3
server search for client completed with host:port
2022-08-06 04:46:40 +02:00
LuckyLaszlo
79bdc1ecbf
ALL_METHODS renamed to ANY_METHODS
2022-08-05 23:01:06 +02:00
Me
6f0c3b4d6d
kinda successful merge, weird tho, didn't go as smoothly with VScode as usual...
2022-08-05 22:25:11 +02:00
Me
f7dc5ccde4
ok Location sorting and processing is finally working as expected, still a few things to add like error_pages but will get there soon
2022-08-05 21:46:46 +02:00
LuckyLaszlo
914d4cb0c0
HTML_ERROR Macro reformat
2022-08-05 04:44:23 +02:00
LuckyLaszlo
e596d8f093
MIME types map for correct Content-type header
...
+ append body to string cause encoding problem, so added temp buf in Client.
2022-08-05 04:24:15 +02:00
Me
9ac14aa1aa
Well we learned a lot from Nginx, starting to incorporate some, but hoping for feedback before i do most of that, instead worked on improving the location sorter and checking that locations paths are valid, close but not quite done
2022-08-05 03:42:42 +02:00
LuckyLaszlo
3102253092
wip DELETE, POST (no cgi, need testing)
2022-08-04 20:56:37 +02:00
Eric LAZO
f7e6b61811
LocationConfig sorter works as intended, tho should prolly check things thoroughly later
2022-08-04 19:33:38 +02:00
Me
fce1bcbece
well, the location sorter is better, but i don't understand why, kinda by accident, will try to figure it out
2022-08-04 16:45:12 +02:00