Eric LAZO
19da59ecf8
cleaned things up
2022-08-15 19:40:21 +02:00
Eric LAZO
aa03880601
still working on telnet tester
2022-08-15 01:47:37 +02:00
Eric LAZO
21efbef86a
better telnet tester, merging
2022-08-14 21:41:46 +02:00
Eric LAZO
683dbadb91
better telnet tester
2022-08-14 21:26:57 +02:00
LuckyLaszlo
8d4961c9b5
memo.txt update
2022-08-14 17:53:29 +02:00
LuckyLaszlo
37c5be9ffc
Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv
2022-08-14 06:32:07 +02:00
LuckyLaszlo
ce0a004d28
Le merge / 20
2022-08-14 06:30:27 +02:00
LuckyLaszlo
84babec82b
added multipart upload file,
...
it works, but need some adjustements,
refactoring and testing
2022-08-14 06:25:06 +02:00
Me
ddafa229c6
something done to the telnet tester
2022-08-14 03:49:29 +02:00
Hugo LAMY
be499328f6
fixed error in is_cgi, path was missing dot
2022-08-14 01:17:55 +02:00
Hugo LAMY
41db4fc12b
Merge branch 'hugo4'
2022-08-14 01:10:01 +02:00
Hugo LAMY
a20a5eff27
Merge branch 'master' of bitbucket.org:LuckyLaszlo/webserv
2022-08-14 01:09:25 +02:00
Hugo LAMY
db4c7468cc
is_cgi function is back and is working
...
+ in utils added function eval_file_mode(), it returns http errors codes about file
2022-08-14 01:05:20 +02:00
Eric LAZO
dda32c759a
decent start to bash tester
2022-08-13 22:38:31 +02:00
LuckyLaszlo
b0949615c8
fixed mistake in _read_request()
...
+ changes to some log output
2022-08-13 19:17:32 +02:00
hugogogo
285f2d049f
+ in fill_script_path() : scipt_path and script_info are filled, removing leadin dot
...
+ in _cgi_pos() : check validity of extension if it's only alpha characters
+ severall pbm appears
2022-08-13 14:38:50 +02:00
hugogogo
defb2ada61
fixed pbm in extract_line : delete the line and the newline sequence character
...
+ fixed pbm n _cgi_pos : last return is npos, not pos
2022-08-13 12:39:05 +02:00
Me
ebd0fda52c
more mucking about with telnet
2022-08-13 05:57:50 +02:00
Me
c3240b8618
i found a mistake but still doesn't work...
2022-08-13 03:52:33 +02:00
Me
3495ff19a8
mucked about with Telnet
2022-08-13 03:01:41 +02:00
LuckyLaszlo
058701f657
upload_form.html
...
+ need to add multipart/form-data parsing
2022-08-13 01:15:59 +02:00
Me
a69273b88e
fixed an autoindex issue, working on uploading files
2022-08-12 23:45:13 +02:00
hugogogo
f17bc9fa58
wip test path cgi :
...
- _cgi_pos seems to be ok
- construct url from return is not implemented yet
+ renamed script with extension .php and .cpp
2022-08-12 23:31:59 +02:00
Eric LAZO
4d395088d0
trying to get submit form to work...
2022-08-12 20:08:49 +02:00
LuckyLaszlo
c7bbf29a1b
NPOS macro
2022-08-12 18:16:49 +02:00
LuckyLaszlo
b44acafefe
CGI discussion and a little bit of work done
2022-08-12 18:08:39 +02:00
Me
cade79c37f
started non hardcoded cgi call
2022-08-12 16:20:50 +02:00
Eric LAZO
52824f30bd
merged and added colors to makefile
2022-08-12 15:24:10 +02:00
hugogogo
2a70c6b26d
Merge branch 'hugo3'
...
+ script output verification works (field duplicate and status)
+ parsing_message_http :
- the file is deleted
- of the three functions it contained, only one still exist
- 'parse_http_headers' is now in utils
+ changes in utils :
- http headers parsing doesn't change key case itself
- a new function change key case tolower case in map<str, str>
- added split_trim() that perform a split and a trim at once
- resolved pbm in trim
- added print_special to print special char '\r' and '\n'
- del_line became extract_line, because it returns the deleted line
- added get line, that does the same without deleting
- moved http_header in utils, and made it more consistent
+ in Client :
- parse_request is now named parse_request_headers to work with parse body
- private function _parse_request_headers is then now _parse_request_fields
(because it doesn't take care of request first line, but only fields)
- added a debug function 'print_client'
2022-08-12 14:05:11 +02:00
hugogogo
71c07140e2
added text inside youpibanane files
2022-08-12 12:08:56 +02:00
hugogogo
de09c2357c
php newline pbm resolved
2022-08-12 12:00:20 +02:00
hugogogo
c225063361
script output fields is checked for duplicate
2022-08-12 11:45:06 +02:00
LuckyLaszlo
400efbe720
Wip chunked decoding
...
+ Need to test normal body parsing
+ path_is_valid() renamed eval_file_type()
+ replaced atoi with strtol/strtoul
2022-08-12 05:50:00 +02:00
Me
f7c0ff1a8a
clean up
2022-08-12 04:38:07 +02:00
hugogogo
3a58b5d921
wip debug comparison fields output script
2022-08-11 19:42:09 +02:00
hugogogo
a1fff0f8c2
added colors, for print_special
...
+ renamed client's public function parse_request() into parse_request_headers()
2022-08-11 17:46:27 +02:00
hugogogo
ad2b5a629a
correct extract_line to avoid duplicate with erase or substr, and to resolve pbm of returning trailing delim
2022-08-11 17:33:42 +02:00
hugogogo
ff77dfd298
debug new request parsing
2022-08-11 14:50:56 +02:00
LuckyLaszlo
ab0bc2c4c0
added timeout response (status 408)
...
+ added EPOLLERR and EPOLLHUP handling
+ fix root substitution for default "/" location (temp or permanent ?)
+ tested siege a little, seems good
2022-08-11 07:12:13 +02:00
Me
08f6929db9
fixed autoindex
2022-08-11 02:15:40 +02:00
Me
c32fc2c8a2
I really hope this is the last time we fix Location Picker, i think it's good it's pretty elegant, basically set root and location path to never have / at end and that made things easier
2022-08-11 02:01:24 +02:00
hugogogo
27b4f96618
parsing headers is allright now
...
+ adding error codes in readme and in comments in client
2022-08-11 00:41:17 +02:00
Me
0b51d13f13
a few more things for location picker
2022-08-11 00:36:24 +02:00
hugogogo
1d67e6988d
http message parsin wip but really better
2022-08-11 00:28:01 +02:00
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
LuckyLaszlo
360c27df5f
done root substitution
...
+ autoindex/index adjustement
2022-08-10 19:59:05 +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
Me
69c1a6f6bf
A Much better way of picking locations
2022-08-10 16:14:21 +02:00