-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·29 lines (23 loc) · 799 Bytes
/
Copy pathtest.sh
File metadata and controls
executable file
·29 lines (23 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
echo "HTTP Proxy Server Test Script"
echo "=============================="
echo ""
echo "Make sure the proxy server is running on port 8080"
echo ""
echo "Test 1: Simple GET request"
echo "--------------------------"
curl -x http://localhost:8080 http://httpbin.org/get
echo ""
echo ""
echo "Test 2: GET request with custom headers"
echo "----------------------------------------"
curl -x http://localhost:8080 -H "User-Agent: Test-Proxy-Client" -H "X-Custom-Header: TestValue" http://httpbin.org/headers
echo ""
echo ""
echo "Test 3: POST request"
echo "--------------------"
curl -x http://localhost:8080 -X POST -d "name=proxy&type=test" http://httpbin.org/post
echo ""
echo ""
echo "All tests completed!"
echo "Check the proxy server logs to see the request/response details."