From a52ffaa9222914e006c4bbfe154f5e85df1c74ab Mon Sep 17 00:00:00 2001 From: Soham Sharma Date: Sat, 30 Nov 2024 20:51:12 -0500 Subject: [PATCH] Add files via upload --- client/TCP/Dockerfile | 13 +++++++++++++ client/TCP/tcp_send_request.sh | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 client/TCP/Dockerfile create mode 100644 client/TCP/tcp_send_request.sh diff --git a/client/TCP/Dockerfile b/client/TCP/Dockerfile new file mode 100644 index 0000000..a3c4b17 --- /dev/null +++ b/client/TCP/Dockerfile @@ -0,0 +1,13 @@ +FROM alpine/curl-http3 + +USER root + +RUN apk add --no-cache bash + +COPY tcp_send_request.sh /tcp_send_request.sh + +RUN chmod +x /tcp_send_request.sh + +# CMD ["./tcp_send_request.sh"] + +ENTRYPOINT [ "/bin/bash", "/tcp_send_request.sh" ] \ No newline at end of file diff --git a/client/TCP/tcp_send_request.sh b/client/TCP/tcp_send_request.sh new file mode 100644 index 0000000..e6a6626 --- /dev/null +++ b/client/TCP/tcp_send_request.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Define the target URL +URL="https://quic.nginx.org/" + +# Send 100 curl requests +for i in {1..100} +do + echo "Sending request $i to $URL" + curl -I "$URL" +done \ No newline at end of file