OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // A binary wrapper for QuicClient. | 5 // A binary wrapper for QuicClient. |
6 // Connects to a host using QUIC, sends a request to the provided URL, and | 6 // Connects to a host using QUIC, sends a request to the provided URL, and |
7 // displays the response. | 7 // displays the response. |
8 // | 8 // |
9 // Some usage examples: | 9 // Some usage examples: |
10 // | 10 // |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 #include <iostream> | 41 #include <iostream> |
42 | 42 |
43 #include "base/at_exit.h" | 43 #include "base/at_exit.h" |
44 #include "base/command_line.h" | 44 #include "base/command_line.h" |
45 #include "base/logging.h" | 45 #include "base/logging.h" |
46 #include "base/message_loop/message_loop.h" | 46 #include "base/message_loop/message_loop.h" |
47 #include "base/strings/string_number_conversions.h" | 47 #include "base/strings/string_number_conversions.h" |
48 #include "base/strings/string_split.h" | 48 #include "base/strings/string_split.h" |
49 #include "base/strings/string_util.h" | 49 #include "base/strings/string_util.h" |
50 #include "base/strings/stringprintf.h" | |
51 #include "net/base/ip_address.h" | 50 #include "net/base/ip_address.h" |
52 #include "net/base/ip_endpoint.h" | 51 #include "net/base/ip_endpoint.h" |
53 #include "net/base/net_errors.h" | 52 #include "net/base/net_errors.h" |
54 #include "net/base/privacy_mode.h" | 53 #include "net/base/privacy_mode.h" |
55 #include "net/cert/cert_verifier.h" | 54 #include "net/cert/cert_verifier.h" |
56 #include "net/cert/multi_log_ct_verifier.h" | 55 #include "net/cert/multi_log_ct_verifier.h" |
57 #include "net/http/http_request_info.h" | 56 #include "net/http/http_request_info.h" |
58 #include "net/http/transport_security_state.h" | 57 #include "net/http/transport_security_state.h" |
59 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" | 58 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" |
60 #include "net/quic/core/quic_protocol.h" | 59 #include "net/quic/core/quic_protocol.h" |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 return 0; | 368 return 0; |
370 } else { | 369 } else { |
371 cout << "Request failed (redirect " << response_code << ")." << endl; | 370 cout << "Request failed (redirect " << response_code << ")." << endl; |
372 return 1; | 371 return 1; |
373 } | 372 } |
374 } else { | 373 } else { |
375 cerr << "Request failed (" << response_code << ")." << endl; | 374 cerr << "Request failed (" << response_code << ")." << endl; |
376 return 1; | 375 return 1; |
377 } | 376 } |
378 } | 377 } |
OLD | NEW |