@@ -354,7 +354,7 @@ TEST(BufferStreamTest, read) {
354
354
EXPECT_EQ (0 , strm.read (buf, 1 ));
355
355
}
356
356
357
- TEST (ChunkedEncodingTest, FromHTTPWatch ) {
357
+ TEST (ChunkedEncodingTest, FromHTTPWatch_Online ) {
358
358
auto host = " www.httpwatch.com" ;
359
359
360
360
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
@@ -377,7 +377,7 @@ TEST(ChunkedEncodingTest, FromHTTPWatch) {
377
377
EXPECT_EQ (out, res->body );
378
378
}
379
379
380
- TEST (ChunkedEncodingTest, WithContentReceiver ) {
380
+ TEST (ChunkedEncodingTest, WithContentReceiver_Online ) {
381
381
auto host = " www.httpwatch.com" ;
382
382
383
383
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
@@ -405,7 +405,7 @@ TEST(ChunkedEncodingTest, WithContentReceiver) {
405
405
EXPECT_EQ (out, body);
406
406
}
407
407
408
- TEST (ChunkedEncodingTest, WithResponseHandlerAndContentReceiver ) {
408
+ TEST (ChunkedEncodingTest, WithResponseHandlerAndContentReceiver_Online ) {
409
409
auto host = " www.httpwatch.com" ;
410
410
411
411
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
@@ -437,7 +437,7 @@ TEST(ChunkedEncodingTest, WithResponseHandlerAndContentReceiver) {
437
437
EXPECT_EQ (out, body);
438
438
}
439
439
440
- TEST (RangeTest, FromHTTPBin ) {
440
+ TEST (RangeTest, FromHTTPBin_Online ) {
441
441
auto host = " httpbin.org" ;
442
442
443
443
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
@@ -578,7 +578,7 @@ TEST(ConnectionErrorTest, Timeout) {
578
578
EXPECT_TRUE (res.error () == Error::Connection);
579
579
}
580
580
581
- TEST (CancelTest, NoCancel ) {
581
+ TEST (CancelTest, NoCancel_Online ) {
582
582
auto host = " httpbin.org" ;
583
583
584
584
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
@@ -596,7 +596,7 @@ TEST(CancelTest, NoCancel) {
596
596
EXPECT_EQ (200 , res->status );
597
597
}
598
598
599
- TEST (CancelTest, WithCancelSmallPayload ) {
599
+ TEST (CancelTest, WithCancelSmallPayload_Online ) {
600
600
auto host = " httpbin.org" ;
601
601
602
602
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
@@ -613,7 +613,7 @@ TEST(CancelTest, WithCancelSmallPayload) {
613
613
EXPECT_EQ (Error::Canceled, res.error ());
614
614
}
615
615
616
- TEST (CancelTest, WithCancelLargePayload ) {
616
+ TEST (CancelTest, WithCancelLargePayload_Online ) {
617
617
auto host = " httpbin.org" ;
618
618
619
619
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
@@ -632,7 +632,7 @@ TEST(CancelTest, WithCancelLargePayload) {
632
632
EXPECT_EQ (Error::Canceled, res.error ());
633
633
}
634
634
635
- TEST (BaseAuthTest, FromHTTPWatch ) {
635
+ TEST (BaseAuthTest, FromHTTPWatch_Online ) {
636
636
auto host = " httpbin.org" ;
637
637
638
638
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
@@ -683,7 +683,7 @@ TEST(BaseAuthTest, FromHTTPWatch) {
683
683
}
684
684
685
685
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
686
- TEST (DigestAuthTest, FromHTTPWatch ) {
686
+ TEST (DigestAuthTest, FromHTTPWatch_Online ) {
687
687
auto host = " httpbin.org" ;
688
688
auto port = 443 ;
689
689
SSLClient cli (host, port);
@@ -730,7 +730,7 @@ TEST(DigestAuthTest, FromHTTPWatch) {
730
730
}
731
731
#endif
732
732
733
- TEST (AbsoluteRedirectTest, Redirect ) {
733
+ TEST (AbsoluteRedirectTest, Redirect_Online ) {
734
734
auto host = " nghttp2.org" ;
735
735
736
736
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
@@ -745,7 +745,7 @@ TEST(AbsoluteRedirectTest, Redirect) {
745
745
EXPECT_EQ (200 , res->status );
746
746
}
747
747
748
- TEST (RedirectTest, Redirect ) {
748
+ TEST (RedirectTest, Redirect_Online ) {
749
749
auto host = " nghttp2.org" ;
750
750
751
751
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
@@ -760,7 +760,7 @@ TEST(RedirectTest, Redirect) {
760
760
EXPECT_EQ (200 , res->status );
761
761
}
762
762
763
- TEST (RelativeRedirectTest, Redirect ) {
763
+ TEST (RelativeRedirectTest, Redirect_Online ) {
764
764
auto host = " nghttp2.org" ;
765
765
766
766
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
@@ -775,7 +775,7 @@ TEST(RelativeRedirectTest, Redirect) {
775
775
EXPECT_EQ (200 , res->status );
776
776
}
777
777
778
- TEST (TooManyRedirectTest, Redirect ) {
778
+ TEST (TooManyRedirectTest, Redirect_Online ) {
779
779
auto host = " nghttp2.org" ;
780
780
781
781
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
@@ -791,7 +791,7 @@ TEST(TooManyRedirectTest, Redirect) {
791
791
}
792
792
793
793
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
794
- TEST (YahooRedirectTest, Redirect ) {
794
+ TEST (YahooRedirectTest, Redirect_Online ) {
795
795
Client cli (" yahoo.com" );
796
796
797
797
auto res = cli.Get (" /" );
@@ -805,7 +805,7 @@ TEST(YahooRedirectTest, Redirect) {
805
805
EXPECT_EQ (" https://yahoo.com/" , res->location );
806
806
}
807
807
808
- TEST (HttpsToHttpRedirectTest, Redirect ) {
808
+ TEST (HttpsToHttpRedirectTest, Redirect_Online ) {
809
809
SSLClient cli (" nghttp2.org" );
810
810
cli.set_follow_location (true );
811
811
auto res = cli.Get (
@@ -814,7 +814,7 @@ TEST(HttpsToHttpRedirectTest, Redirect) {
814
814
EXPECT_EQ (200 , res->status );
815
815
}
816
816
817
- TEST (HttpsToHttpRedirectTest2, Redirect ) {
817
+ TEST (HttpsToHttpRedirectTest2, Redirect_Online ) {
818
818
SSLClient cli (" nghttp2.org" );
819
819
cli.set_follow_location (true );
820
820
@@ -827,7 +827,7 @@ TEST(HttpsToHttpRedirectTest2, Redirect) {
827
827
EXPECT_EQ (200 , res->status );
828
828
}
829
829
830
- TEST (HttpsToHttpRedirectTest3, Redirect ) {
830
+ TEST (HttpsToHttpRedirectTest3, Redirect_Online ) {
831
831
SSLClient cli (" nghttp2.org" );
832
832
cli.set_follow_location (true );
833
833
@@ -839,7 +839,7 @@ TEST(HttpsToHttpRedirectTest3, Redirect) {
839
839
EXPECT_EQ (200 , res->status );
840
840
}
841
841
842
- TEST (UrlWithSpace, Redirect ) {
842
+ TEST (UrlWithSpace, Redirect_Online ) {
843
843
SSLClient cli (" edge.forgecdn.net" );
844
844
cli.set_follow_location (true );
845
845
@@ -3859,7 +3859,7 @@ TEST(GetWithParametersTest, GetWithParameters2) {
3859
3859
ASSERT_FALSE (svr.is_running ());
3860
3860
}
3861
3861
3862
- TEST (ClientDefaultHeadersTest, DefaultHeaders ) {
3862
+ TEST (ClientDefaultHeadersTest, DefaultHeaders_Online ) {
3863
3863
Client cli (" httpbin.org" );
3864
3864
cli.set_default_headers ({make_range_header ({{1 , 10 }})});
3865
3865
cli.set_connection_timeout (5 );
@@ -4096,21 +4096,21 @@ TEST(SSLClientTest, UpdateCAStore) {
4096
4096
httplib_client.set_ca_cert_store (ca_store_2);
4097
4097
}
4098
4098
4099
- TEST (SSLClientTest, ServerNameIndication ) {
4099
+ TEST (SSLClientTest, ServerNameIndication_Online ) {
4100
4100
SSLClient cli (" httpbin.org" , 443 );
4101
4101
auto res = cli.Get (" /get" );
4102
4102
ASSERT_TRUE (res);
4103
4103
ASSERT_EQ (200 , res->status );
4104
4104
}
4105
4105
4106
- TEST (SSLClientTest, ServerCertificateVerification1 ) {
4106
+ TEST (SSLClientTest, ServerCertificateVerification1_Online ) {
4107
4107
SSLClient cli (" google.com" );
4108
4108
auto res = cli.Get (" /" );
4109
4109
ASSERT_TRUE (res);
4110
4110
ASSERT_EQ (301 , res->status );
4111
4111
}
4112
4112
4113
- TEST (SSLClientTest, ServerCertificateVerification2 ) {
4113
+ TEST (SSLClientTest, ServerCertificateVerification2_Online ) {
4114
4114
SSLClient cli (" google.com" );
4115
4115
cli.enable_server_certificate_verification (true );
4116
4116
cli.set_ca_cert_path (" hello" );
@@ -4119,7 +4119,7 @@ TEST(SSLClientTest, ServerCertificateVerification2) {
4119
4119
EXPECT_EQ (Error::SSLLoadingCerts, res.error ());
4120
4120
}
4121
4121
4122
- TEST (SSLClientTest, ServerCertificateVerification3 ) {
4122
+ TEST (SSLClientTest, ServerCertificateVerification3_Online ) {
4123
4123
SSLClient cli (" google.com" );
4124
4124
cli.set_ca_cert_path (CA_CERT_FILE);
4125
4125
auto res = cli.Get (" /" );
@@ -4152,7 +4152,7 @@ TEST(SSLClientTest, ServerCertificateVerification4) {
4152
4152
t.join ();
4153
4153
}
4154
4154
4155
- TEST (SSLClientTest, WildcardHostNameMatch ) {
4155
+ TEST (SSLClientTest, WildcardHostNameMatch_Online ) {
4156
4156
SSLClient cli (" www.youtube.com" );
4157
4157
4158
4158
cli.set_ca_cert_path (CA_CERT_FILE);
@@ -4397,7 +4397,7 @@ TEST(NoScheme, SimpleInterface) {
4397
4397
ASSERT_TRUE (cli.is_valid ());
4398
4398
}
4399
4399
4400
- TEST (SendAPI, SimpleInterface ) {
4400
+ TEST (SendAPI, SimpleInterface_Online ) {
4401
4401
Client cli (" http://yahoo.com" );
4402
4402
4403
4403
Request req;
@@ -4410,7 +4410,7 @@ TEST(SendAPI, SimpleInterface) {
4410
4410
}
4411
4411
4412
4412
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
4413
- TEST (YahooRedirectTest2, SimpleInterface ) {
4413
+ TEST (YahooRedirectTest2, SimpleInterface_Online ) {
4414
4414
Client cli (" http://yahoo.com" );
4415
4415
4416
4416
auto res = cli.Get (" /" );
@@ -4424,7 +4424,7 @@ TEST(YahooRedirectTest2, SimpleInterface) {
4424
4424
EXPECT_EQ (" https://yahoo.com/" , res->location );
4425
4425
}
4426
4426
4427
- TEST (YahooRedirectTest3, SimpleInterface ) {
4427
+ TEST (YahooRedirectTest3, SimpleInterface_Online ) {
4428
4428
Client cli (" https://yahoo.com" );
4429
4429
4430
4430
auto res = cli.Get (" /" );
@@ -4438,7 +4438,7 @@ TEST(YahooRedirectTest3, SimpleInterface) {
4438
4438
EXPECT_EQ (" https://www.yahoo.com/" , res->location );
4439
4439
}
4440
4440
4441
- TEST (YahooRedirectTest3, NewResultInterface ) {
4441
+ TEST (YahooRedirectTest3, NewResultInterface_Online ) {
4442
4442
Client cli (" https://yahoo.com" );
4443
4443
4444
4444
auto res = cli.Get (" /" );
@@ -4463,7 +4463,7 @@ TEST(YahooRedirectTest3, NewResultInterface) {
4463
4463
}
4464
4464
4465
4465
#ifdef CPPHTTPLIB_BROTLI_SUPPORT
4466
- TEST (DecodeWithChunkedEncoding, BrotliEncoding ) {
4466
+ TEST (DecodeWithChunkedEncoding, BrotliEncoding_Online ) {
4467
4467
Client cli (" https://cdnjs.cloudflare.com" );
4468
4468
auto res =
4469
4469
cli.Get (" /ajax/libs/jquery/3.5.1/jquery.js" , {{" Accept-Encoding" , " br" }});
@@ -4476,7 +4476,7 @@ TEST(DecodeWithChunkedEncoding, BrotliEncoding) {
4476
4476
}
4477
4477
#endif
4478
4478
4479
- TEST (HttpsToHttpRedirectTest, SimpleInterface ) {
4479
+ TEST (HttpsToHttpRedirectTest, SimpleInterface_Online ) {
4480
4480
Client cli (" https://nghttp2.org" );
4481
4481
cli.set_follow_location (true );
4482
4482
auto res =
@@ -4487,7 +4487,7 @@ TEST(HttpsToHttpRedirectTest, SimpleInterface) {
4487
4487
EXPECT_EQ (200 , res->status );
4488
4488
}
4489
4489
4490
- TEST (HttpsToHttpRedirectTest2, SimpleInterface ) {
4490
+ TEST (HttpsToHttpRedirectTest2, SimpleInterface_Online ) {
4491
4491
Client cli (" https://nghttp2.org" );
4492
4492
cli.set_follow_location (true );
4493
4493
@@ -4500,7 +4500,7 @@ TEST(HttpsToHttpRedirectTest2, SimpleInterface) {
4500
4500
EXPECT_EQ (200 , res->status );
4501
4501
}
4502
4502
4503
- TEST (HttpsToHttpRedirectTest3, SimpleInterface ) {
4503
+ TEST (HttpsToHttpRedirectTest3, SimpleInterface_Online ) {
4504
4504
Client cli (" https://nghttp2.org" );
4505
4505
cli.set_follow_location (true );
4506
4506
0 commit comments