| 478 | } |
| 479 | |
| 480 | string curl(const string& curl_options, int32_t port = FLAGS_webserver_port) { |
| 481 | string cmd = Substitute("curl -v -f $0 'http://127.0.0.1:$1'", curl_options, port); |
| 482 | cout << cmd << endl; |
| 483 | return cmd; |
| 484 | } |
| 485 | |
| 486 | string curl_status_code(const string& curl_options, int32_t port = FLAGS_webserver_port) { |
| 487 | string cmd = Substitute("curl -s -f -w \"%{http_code}\" $0 'http://127.0.0.1:$1'", |