We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f7831 commit 1265e0dCopy full SHA for 1265e0d
test/distributables-test/unix.sh
@@ -13,10 +13,20 @@ SERVER_PID=$!
13
14
sleep 10
15
16
+# After starting server
17
+echo "Waiting for server..."
18
+for i in {1..30}; do
19
+ if curl -s http://127.0.0.1:45456/ >/dev/null 2>&1; then
20
+ echo "Server is up"
21
+ break
22
+ fi
23
+ sleep 1
24
+done
25
+
26
echo "\nTesting server..."
27
28
# CSRF protection fully blocks unrecognized/missing origin requests:
-CURL_OPTIONS="--silent --fail -i"
29
+CURL_OPTIONS="-v --fail -i"
30
WITH_ORIGIN="-HOrigin: https://app.httptoolkit.tech"
31
AS_JSON="-HContent-Type: application/json"
32
0 commit comments