I am having trouble with some Http Client connections returning NoHttpResponseException about 1 in 3 times.
My hypothesis is that the firewall is closing idle connections (not unusual).
I would like to use curl to mimic this.
I have been trying something like this but very likely the connection never goes idle
curl --keepalive-time 60 --limit-rate 128B $URL $URL $URL $URL $URL $URL $URL $URL $URL $URL $URL $URL $URL $URL
What I would like is something akin to
curl $URL
sleep 10
curl $URL
sleep 20
curl $URL
sleep 30
curl $URL
Where each time (using some magic!) Curl reuses the same connection.
Is there any way to do this using curl (or wget) and not have to write a program to do it
There is no such thing you couldn’t do with netcat.
Change the path to something different than / if you need it…