DescriptionUpdates quic_client_bin.cc to be more user friendly, and support more
options. Deprecates quic_prober.cc in the process as all (used)
functionality now also in quic_client_bin.cc.
Uses std::cout/cerr instead of LOG() statements, and is has hopefully
more easily parseable output (especially for those off-team) than the
previous tool.
Removed the "print_response" argument to QuicClient, instead QuicClient
has accessor's to the latest response code/headers/body if a user wants
to print details (the only user of this feature is quic_client_bin).
Examples of output:
$ quic_client http://www.google.com/ipz --quiet --host=74.125.137.103
Connected to 74.125.137.103:80
Request succeeded (200).
$ quic_client http://www.google.com/invalid --quiet --host=74.125.137.103
Connected to 74.125.196.105:80
Request failed (404).
$ quic_client http://www.example.com --host=93.184.216.34
Failed to connect to 93.184.216.34:80. Error: QUIC_CONNECTION_TIMED_OUT
$ quic_client http://www.google.com/ipz --host=74.125.137.103
Connected to 173.194.37.84:80
Request:
headers:
:authority: http://www.google.com
:method: GET
:path: /ipz
:scheme: http
body:
Response:headers:
HTTP/1.1 200 OK
Content-Length: 13
content-type: text/html; charset=UTF-8
date: Tue, 30 Dec 2014 20:34:50 GMT
server: GFE/2.0
x-google-backends: acdd12:80
x-google-gfe-request-trace: acdd12:80
x-google-gfe-response-code-details-trace: handling_ipz
x-google-gfe-service-trace:
x-google-service: _internal
body: 172.26.18.85
Request succeeded (200).
TODO: make --host optional by getting IP Address of URL's host.
Merge internal change: 83518478
R=rch@chromium.org
Committed: https://crrev.com/48fc029001d5e6956ef1a3db2ffe22b74b493a5b
Cr-Commit-Position: refs/heads/master@{#311323}
Patch Set 1 #Patch Set 2 : Added DumpHeadersToString to dump response headers #
Total comments: 4
Messages
Total messages: 10 (2 generated)
|