Assignment 1 is due on September 28 (Extended: October 4) #13
Replies: 13 comments 1 reply
-
The deadline of Assignment 1 is extended to October 2. |
Beta Was this translation helpful? Give feedback.
-
If you are unsure how to include the test files in your server when deploying in Docker, you may try the following steps:
This will automatically extract the TAR file inside of
|
Beta Was this translation helpful? Give feedback.
-
I have a question about payload generation. When the target resource for a GET request has an image MIME type, what would be the expected payload from that request? Would it just be the raw bytes of that image? |
Beta Was this translation helpful? Give feedback.
-
Yes, serve the raw bites of all static files, irrespective of the content type. |
Beta Was this translation helpful? Give feedback.
-
Hello Prof., I have created my server and exposed it at 3001 using docker run command with -p option of port mapping. docker run --rm -it -p 80:3001 -v ${PWD}:/app --entrypoint bash echo:v1.0 In another terminal I ran the webserver tester docker container with below commands: Since, I am on Windows machine it does not allow me to directly run the main.py script. Within the docker web-tester container, i run python3 main.py 0.0.0.0:3001 But, I get connection refused error. I even tried local host. My server runs at 0.0.0.0:80 with 3001 port mapping in docker run. Can you help me with setting up tester application locally. Regards, |
Beta Was this translation helpful? Give feedback.
-
@rohitrahiya if you are running both your server and the tester in containers then they will not be able to talk to each other unless they share the same docker network (which is something you will have to create in advance and associate those containers with that network when running) and then you can access those containers by their private IPS, names, or IDs as hostnames. As I explained during the socket programming lecture that the network interface The tester application has no dependencies other than the core Python packages, so you might just want to run it on the host machine (if you have Python installed), irrespective of whether your own server is running inside a container or on the host. Note that if your server is running inside of a container and you are using the port mapping Another possibility would be to run a container from Python image with your code mounted inside of it and execute bash shell. Then run your server script from inside (not at the time of initializing the container). This way, you can use it like a regular Linux terminal that will allow to install packages and perform any other tasks you need to make your server work. Then, from another terminal, you can use Alternatively, you can create a Git branch like |
Beta Was this translation helpful? Give feedback.
-
Considering recent power outages in some areas due to the bad weather the deadline of Assignment 1 is extended to October 4. |
Beta Was this translation helpful? Give feedback.
-
Hello professor ,there's a problem with webserver testing .I am able to deploy the server but the test cases are not running .But when I run it in local host I can see the output . |
Beta Was this translation helpful? Give feedback.
-
@yaswanth9909 the tester was failing to parse your response for the Your implementation has many other issues, of which, some are detected by the tester. |
Beta Was this translation helpful? Give feedback.
-
Hello professor, I think there's a problem with the testing link |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I am having trouble with the testing being down as well |
Beta Was this translation helpful? Give feedback.
-
The site should be up now. It looks like too many people testing their services at the same time caused it to reach the memory limit, resulting in application crashes. I will increase resources for the next assignment. Sorry for the inconvenience. Submit your assignment by 8 AM, October 5, to avoid late penalties. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Assignment 1 is due on
2022-09-28
. This is the first main assignment in which you are asked to implement a basic HTTP server that supports a limited set of methods, status codes, and headers as described in the assignment details. Read related RFCs and refer to the first two lectures as needed.The series of five main assignments will ask you to gradually add standard-compliant features in your HTTP server. Architect your system wisely and avoid hard-coding of configurable aspects to make it easier to extend your project for future assignments.
Feel free to post any questions or concerns you might have regarding this assignment in this thread.
Beta Was this translation helpful? Give feedback.
All reactions