@@ -72,7 +72,7 @@ class HttpURLConnectionFragment : BaseFragment<FragmentHttpUrlConnectionBinding>
72
72
* Demonstrates a successful HttpURLConnection GET request
73
73
*/
74
74
fun successfulGet () {
75
- executeGet(" http ://httpbin.org/get" )
75
+ executeGet(" https ://httpbin.org/get" )
76
76
showDoneToast(" successfulGet" )
77
77
}
78
78
@@ -82,7 +82,7 @@ class HttpURLConnectionFragment : BaseFragment<FragmentHttpUrlConnectionBinding>
82
82
* to end the span. This test covers OPTIONS and TRACE requests too.
83
83
*/
84
84
fun getWithoutInputStream () {
85
- executeGet(" http ://httpbin.org/get" , false )
85
+ executeGet(" https ://httpbin.org/get" , false )
86
86
showDoneToast(" getWithoutInputStream" )
87
87
}
88
88
@@ -91,10 +91,10 @@ class HttpURLConnectionFragment : BaseFragment<FragmentHttpUrlConnectionBinding>
91
91
* Helps test proper synchronization is achieved in our callback APIs code.
92
92
*/
93
93
fun fourConcurrentGetRequests () {
94
- executeGet(" http ://httpbin.org/get" )
95
- executeGet(" http ://google.com" )
96
- executeGet(" http ://android.com" )
97
- executeGet(" http ://httpbin.org/headers" )
94
+ executeGet(" https ://httpbin.org/get" )
95
+ executeGet(" https ://google.com" )
96
+ executeGet(" https ://android.com" )
97
+ executeGet(" https ://httpbin.org/headers" )
98
98
showDoneToast(" fourConcurrentGetRequests" )
99
99
}
100
100
@@ -103,7 +103,7 @@ class HttpURLConnectionFragment : BaseFragment<FragmentHttpUrlConnectionBinding>
103
103
* and thereby requiring the harvester thread to end the span.
104
104
*/
105
105
fun sustainedConnection () {
106
- executeGet(" http ://httpbin.org/get" , false , false )
106
+ executeGet(" https ://httpbin.org/get" , false , false )
107
107
showDoneToast(" sustainedConnection" )
108
108
}
109
109
@@ -112,7 +112,7 @@ class HttpURLConnectionFragment : BaseFragment<FragmentHttpUrlConnectionBinding>
112
112
* and thereby requiring the harvester thread to end the span.
113
113
*/
114
114
fun stalledRequest () {
115
- executeGet(" http ://httpbin.org/get" , false , true , true )
115
+ executeGet(" https ://httpbin.org/get" , false , true , true )
116
116
showDoneToast(" stalledRequest" )
117
117
}
118
118
@@ -144,7 +144,7 @@ class HttpURLConnectionFragment : BaseFragment<FragmentHttpUrlConnectionBinding>
144
144
*/
145
145
fun unSuccessfulGet () {
146
146
runOnBackgroundThread {
147
- val connection = URL (" http ://httpbin.org/status/404" ).openConnection() as HttpURLConnection
147
+ val connection = URL (" https ://httpbin.org/status/404" ).openConnection() as HttpURLConnection
148
148
try {
149
149
val responseCode = connection.responseCode
150
150
val responseMessage = connection.responseMessage
@@ -166,7 +166,7 @@ class HttpURLConnectionFragment : BaseFragment<FragmentHttpUrlConnectionBinding>
166
166
*/
167
167
fun post () {
168
168
runOnBackgroundThread {
169
- val connection = URL (" http ://httpbin.org/post" ).openConnection() as HttpURLConnection
169
+ val connection = URL (" https ://httpbin.org/post" ).openConnection() as HttpURLConnection
170
170
connection.doOutput = true
171
171
connection.requestMethod = " POST"
172
172
try {
0 commit comments