Closed ravimadhusudhan8 closed 5 years ago
ab -p data.json -T application/json -H 'Accept: application/json' -c 5 -n 10 -g add_test_5_10_g.txt -v 4 http://localhost/gateway/applications/add-service/add
Benchmarking localhost (be patient) INFO: POST header == POST /gateway/applications/add-service/add HTTP/1.0 Content-length: 45 Content-type: application/json Accept: application/json Host: localhost User-Agent: ApacheBench/2.3
LOG: header received: HTTP/1.1 426 Upgrade Required date: Fri, 01 Feb 2019 19:24:30 GMT server: envoy connection: close content-length: 0
WARNING: Response code not 2xx (426) LOG: header received: HTTP/1.1 426 Upgrade Required date: Fri, 01 Feb 2019 19:24:30 GMT server: envoy connection: close content-length: 0 ....
I am able to CURL and get a result - curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "x": 1, "y": 1 }' 'http://localhost/gateway/applications/add-service-5/add'
Thanks
Closing this as Envoy only supports HTTP1.1
ab -p data.json -T application/json -H 'Accept: application/json' -c 5 -n 10 -g add_test_5_10_g.txt -v 4 http://localhost/gateway/applications/add-service/add
Benchmarking localhost (be patient) INFO: POST header == POST /gateway/applications/add-service/add HTTP/1.0 Content-length: 45 Content-type: application/json Accept: application/json Host: localhost User-Agent: ApacheBench/2.3
LOG: header received: HTTP/1.1 426 Upgrade Required date: Fri, 01 Feb 2019 19:24:30 GMT server: envoy connection: close content-length: 0
WARNING: Response code not 2xx (426) LOG: header received: HTTP/1.1 426 Upgrade Required date: Fri, 01 Feb 2019 19:24:30 GMT server: envoy connection: close content-length: 0 ....
I am able to CURL and get a result - curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "x": 1, "y": 1 }' 'http://localhost/gateway/applications/add-service-5/add'
Thanks