Send POST Requests every 2 seconds to an endpoint

?
S
Bash

You can use the following bash script to send a POST request to localhost:3600/api every 2 seconds: chmod +x post_request.sh ./post_request.sh

1#!/bin/sh
2
3while true; do
4  curl -X POST http://localhost:3600/api
5  sleep 2
6done
7

Created on 4/28/2023