Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update env.sh #10

Closed
wants to merge 132 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
12cf7d4
Update env.sh
Javi111003 Dec 18, 2024
c206de5
add ftp server and tester
marians002 Jan 2, 2025
778303a
Update env.sh
chriss8g Jan 3, 2025
1d71bfe
Add readme, update run.sh
marians002 Jan 7, 2025
9c56606
Merge branch 'matcom:main' into main
Javi111003 Jan 23, 2025
b3f1269
feat: Implemented initial server and client and added gitignore
Javi111003 Jan 23, 2025
e617430
doc: Added text file with usual commands on RFC959
Javi111003 Jan 23, 2025
596aaf1
Merge branch 'main' of https://github.com/chriss8g/computer_networks_…
Jan 27, 2025
e906b37
feat run.sh
Jan 27, 2025
97331be
fix mock
Jan 27, 2025
5447c8b
Merge branch 'main' of https://github.com/chriss8g/computer_networks_…
Jan 27, 2025
f6defd0
Merge commit '97331be0d53a9a2d0db58995637a827256509e14' into HEAD
Jan 27, 2025
163f624
fix mock
Jan 27, 2025
8f627f6
Merge commit '163f624e8a016f2992311a7595811d302a5835fd'
Jan 27, 2025
3b06e01
Merge branch 'matcom:main' into main
Javi111003 Jan 27, 2025
b48bf99
Create CODEOWNERS
Javi111003 Jan 27, 2025
824cbb3
feat:Added the logic of the commands in the client and some in the se…
CyberKen10 Jan 27, 2025
b435c3b
fix throw error
Jan 28, 2025
013d7f1
fix throw with sys
Jan 28, 2025
08331be
Update tests.py
rmarticedeno Jan 28, 2025
2518137
Update tests.py
chriss8g Jan 28, 2025
5dcab13
Merge branch 'matcom:main' into main
chriss8g Jan 28, 2025
c75e156
check the execution of the last command for exit status 1
rmarticedeno Jan 28, 2025
a795e63
Merge pull request #22 from chriss8g/main
rmarticedeno Jan 28, 2025
eb3bcf1
remove unnecessary files
rmarticedeno Jan 28, 2025
b8bdadb
test files
rmarticedeno Jan 28, 2025
af41cf5
fix parse json
Jan 29, 2025
d69e18a
improve ftp tests
rmarticedeno Jan 29, 2025
0ff3232
Merge remote-tracking branch 'origin/ftp' into ftp
rmarticedeno Jan 29, 2025
2ffdc79
Merge branch 'ftp'
rmarticedeno Jan 29, 2025
ef62c9a
solve port mismatch
rmarticedeno Jan 29, 2025
2f36540
wrong test path
rmarticedeno Jan 29, 2025
a68cf32
fix variable typo
rmarticedeno Jan 29, 2025
8eaefaf
another typo
rmarticedeno Jan 29, 2025
05db0d4
revert http change
rmarticedeno Jan 29, 2025
40e0ffe
clean unused variable
rmarticedeno Jan 29, 2025
bfd3bc9
get cwd
rmarticedeno Jan 29, 2025
21c826a
list folder files
rmarticedeno Jan 29, 2025
a9b32cd
give execution permissions to run.sh file
rmarticedeno Jan 29, 2025
e9cfb73
use list versions of run
rmarticedeno Jan 29, 2025
ffa1560
run.sh as executable
rmarticedeno Jan 29, 2025
cc0b069
use stdout
rmarticedeno Jan 29, 2025
df1f960
invert order of execution
rmarticedeno Jan 29, 2025
3a01ec7
fix tests.py http
Jan 29, 2025
b25f086
Colored output
rmarticedeno Jan 29, 2025
d075cb1
Merge remote-tracking branch 'origin/main'
rmarticedeno Jan 29, 2025
902b475
delete client.py http
Jan 29, 2025
9e17387
feat server
Dec 14, 2024
665752c
fix smtp server
Jan 29, 2025
4cc092a
fix tests smtp
Jan 29, 2025
f852cb3
irc tests
rmarticedeno Jan 30, 2025
9748f83
Update readme
rmarticedeno Jan 30, 2025
2f4218b
update ftp tests
rmarticedeno Jan 30, 2025
16c629f
feat run.sh
Jan 27, 2025
61ec855
fix mock
Jan 27, 2025
1fa6527
fix mock
Jan 27, 2025
e080bad
fix throw error
Jan 28, 2025
f6762b7
fix throw with sys
Jan 28, 2025
515480f
Update tests.py
chriss8g Jan 28, 2025
8cbccfc
check the execution of the last command for exit status 1
rmarticedeno Jan 28, 2025
f696172
fix parse json
Jan 29, 2025
f06ea61
add ftp server and tester
marians002 Jan 2, 2025
f10e3db
remove unnecessary files
rmarticedeno Jan 28, 2025
24e9b8e
test files
rmarticedeno Jan 28, 2025
ba55a81
improve ftp tests
rmarticedeno Jan 29, 2025
5a66954
Add readme, update run.sh
marians002 Jan 7, 2025
59a62ee
solve port mismatch
rmarticedeno Jan 29, 2025
bd52509
fix variable typo
rmarticedeno Jan 29, 2025
4bd63e9
another typo
rmarticedeno Jan 29, 2025
f72477f
revert http change
rmarticedeno Jan 29, 2025
82ccce1
clean unused variable
rmarticedeno Jan 29, 2025
aa85c03
get cwd
rmarticedeno Jan 29, 2025
70b5aaa
list folder files
rmarticedeno Jan 29, 2025
c912d3e
give execution permissions to run.sh file
rmarticedeno Jan 29, 2025
520be0d
use list versions of run
rmarticedeno Jan 29, 2025
8c52160
run.sh as executable
rmarticedeno Jan 29, 2025
3546266
use stdout
rmarticedeno Jan 29, 2025
b92641a
invert order of execution
rmarticedeno Jan 29, 2025
925ee2c
Colored output
rmarticedeno Jan 29, 2025
bb68365
fix tests.py http
Jan 29, 2025
35746d2
delete client.py http
Jan 29, 2025
5c0eb1a
feat server
Dec 14, 2024
c344173
fix smtp server
Jan 29, 2025
9db6d81
fix tests smtp
Jan 29, 2025
1609d57
irc tests
rmarticedeno Jan 30, 2025
de6ca44
Update readme
rmarticedeno Jan 30, 2025
11bb12b
update ftp tests
rmarticedeno Jan 30, 2025
0bb40be
feat:Added the logic of the commands in the client and some in the se…
CyberKen10 Jan 27, 2025
a43f06f
Actualizar tester.py
rmarticedeno Feb 1, 2025
a8a5e6b
improve ftp logging
rmarticedeno Feb 1, 2025
a416884
fix pwd status code
rmarticedeno Feb 1, 2025
e037b78
use correct pasv addr
rmarticedeno Feb 1, 2025
faaa946
remove extra check for pwd
rmarticedeno Feb 1, 2025
5ab5624
get rid of dns resolution for pasv addr
rmarticedeno Feb 1, 2025
8a3bbcc
Update README.md
chriss8g Feb 2, 2025
1aae793
fix server http
Feb 2, 2025
968b4ec
Update env.sh
Javi111003 Dec 18, 2024
f0d2967
feat: Implemented initial server and client and added gitignore
Javi111003 Jan 23, 2025
2d068db
doc: Added text file with usual commands on RFC959
Javi111003 Jan 23, 2025
bac5664
Create CODEOWNERS
Javi111003 Jan 27, 2025
d438bba
feat:Added the logic of the commands in the client and some in the se…
CyberKen10 Jan 27, 2025
6348120
feat run.sh
Jan 27, 2025
4d3d4ac
Add readme, update run.sh
marians002 Jan 7, 2025
cc7e43d
Update readme
rmarticedeno Jan 30, 2025
8a8b9a7
feat:Added the logic of the commands in the client and some in the se…
CyberKen10 Jan 27, 2025
ebcdba7
Merge branch 'main' of https://github.com/Javi111003/computer_network…
Javi111003 Feb 7, 2025
f815360
feat:Changed project structure and refactor code on client to handle …
Javi111003 Feb 8, 2025
892df65
Update install.sh
Javi111003 Feb 8, 2025
8258032
Update run.sh
Javi111003 Feb 8, 2025
cd7f730
Update run.sh
Javi111003 Feb 8, 2025
257d328
Update run.sh
Javi111003 Feb 8, 2025
d2e2890
feat:Added argument parser for running required tests
Javi111003 Feb 9, 2025
21f6b92
fix:Disabled automatic help of args parser to recognize -h as port
Javi111003 Feb 9, 2025
95a93f8
fix:Included functions to rename file and fixed entry point to handle…
Javi111003 Feb 9, 2025
027eca9
fix:Fixed RNFR/RNTO sequence
Javi111003 Feb 10, 2025
33eb66c
fix:CLI fixed to print all command execution outputs
Javi111003 Feb 10, 2025
d80b122
fix:Print login and pwd response on cli, to pass the tests
Javi111003 Feb 10, 2025
2249c94
fix:Remove multi line response printed on cli after log in
Javi111003 Feb 10, 2025
ac98152
fix:Printed intermediate response on RETR and STOR command outputs
Javi111003 Feb 10, 2025
b75decf
fix:Printed server response when ftp_client have established connection
Javi111003 Feb 10, 2025
aef5fac
feat: Added some validations to the commands in the client and added …
CyberKen10 Feb 10, 2025
863102a
fix:Fixed utils validations and the same has been changed on client
Javi111003 Feb 11, 2025
cb178ba
fix:Fixed path validation to ignore some escape chars
Javi111003 Feb 11, 2025
c0788f0
feat: Added some validations to the commands in the client and added …
CyberKen10 Feb 10, 2025
df11d7a
feat:Created the first version of the console
CyberKen10 Feb 10, 2025
05a3244
feat:Implement command pattern in ftp server to encapsulate logic of …
Javi111003 Feb 11, 2025
38da514
feat:Added system and tranfer commands
Javi111003 Feb 11, 2025
fc10b02
fix: Removed invalid transfer type on set_type_command
Javi111003 Feb 12, 2025
1ed5183
fix:Fixed some commands logic
Javi111003 Feb 12, 2025
ae1162b
fix: Fixed system_commands to remove unnecesary dependences
Javi111003 Feb 12, 2025
7e2745a
feat:Credentials manager to handle a secured authentication
Javi111003 Feb 12, 2025
83ca7e7
fix:Fixed reinitialize active session and added some extra commands n…
Javi111003 Feb 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix mock
chriss8g authored and Javi111003 committed Jan 30, 2025
commit 61ec85534373069f4415b48314828bb5bba7c13e
7 changes: 3 additions & 4 deletions client.py
Original file line number Diff line number Diff line change
@@ -11,13 +11,12 @@ def main():
body = sys.argv[4] # El cuerpo de la solicitud (como string)

# Realizar la solicitud HTTP
response = requests.request(method, url, headers=headers, data=body)

# Formateamos la respuesta para que sea legible y fácil de procesar
response_data = {
'status': response.status_code,
'body': response.text,
'headers': dict(response.headers)
'status': '500',
'body': 'Error',
'headers': '\{\}'
}

# Imprimimos la respuesta en formato JSON