@@ -21,7 +21,7 @@ public HttpTest(TestFixture testFixture) : base(testFixture)
2121 [ Fact ]
2222 public async Task HttpTest_Get ( )
2323 {
24- const string page = @"https://httpbin .org/get" ;
24+ const string page = @"https://httpbingo .org/get" ;
2525 var result = await GetAsync ( page ) . ReceiveString ( ) ;
2626 var json = JsonDocument . Parse ( result ) ;
2727 var url = json . RootElement . GetProperty ( "url" ) . GetString ( ) ;
@@ -31,7 +31,7 @@ public async Task HttpTest_Get()
3131 [ Fact ]
3232 public async Task HttpTest_Gzip ( )
3333 {
34- const string page = @"https://httpbin .org/gzip" ;
34+ const string page = @"https://httpbingo .org/gzip" ;
3535 var result = await GetAsync ( page ) . ReceiveString ( ) ;
3636 var json = JsonDocument . Parse ( result ) ;
3737 var url = json . RootElement . GetProperty ( "gzipped" ) . GetBoolean ( ) ;
@@ -41,7 +41,7 @@ public async Task HttpTest_Gzip()
4141 [ Fact ]
4242 public async Task HttpTest_Gzip_WithRequestHeader ( )
4343 {
44- const string page = @"https://httpbin .org/gzip" ;
44+ const string page = @"https://httpbingo .org/gzip" ;
4545 var req = new HttpRequestMessage ( HttpMethod . Get , page ) ;
4646 req . Headers . Add ( "Accept-Encoding" , "gzip" ) ;
4747 var result = await SendAsync ( req ) . ReceiveString ( ) ;
@@ -94,7 +94,7 @@ public async Task HttpTest_Deflate()
9494 {
9595 Skip . If ( DeviceInfo . Platform != DevicePlatform . Android && DeviceInfo . Platform != DevicePlatform . iOS , "Failing on .Net" ) ;
9696
97- const string page = @"https://httpbin .org/deflate" ;
97+ const string page = @"https://httpbingo .org/deflate" ;
9898 var result = await GetAsync ( page ) . ReceiveString ( ) ;
9999 var json = JsonDocument . Parse ( result ) ;
100100 var url = json . RootElement . GetProperty ( "deflated" ) . GetBoolean ( ) ;
@@ -104,7 +104,7 @@ public async Task HttpTest_Deflate()
104104 [ Fact ]
105105 public async Task HttpTest_Utf8 ( )
106106 {
107- const string page = @"https://httpbin .org/encoding/utf8" ;
107+ const string page = @"https://httpbingo .org/encoding/utf8" ;
108108 var result = await GetAsync ( page ) . ReceiveString ( ) ;
109109 Assert . Contains ( "∮ E⋅da = Q, n → ∞, ∑ f(i) = ∏ g(i)" , result ) ;
110110 }
@@ -140,7 +140,7 @@ public async Task HttpTest_DoNotFollowRedirects()
140140 [ Fact ]
141141 public async Task HttpTest_Delay ( )
142142 {
143- const string page = @"https://httpbin .org/delay/5" ;
143+ const string page = @"https://httpbingo .org/delay/5" ;
144144 var result = await GetAsync ( page ) . ReceiveString ( ) ;
145145 var json = JsonDocument . Parse ( result ) ;
146146 var url = json . RootElement . GetProperty ( "url" ) . GetString ( ) ;
@@ -150,7 +150,7 @@ public async Task HttpTest_Delay()
150150 [ Fact ]
151151 public async Task HttpTest_Stream ( )
152152 {
153- const string page = @"https://httpbin .org/stream/50" ;
153+ const string page = @"https://httpbingo .org/stream/50" ;
154154 var result = await GetAsync ( page ) . ReceiveString ( ) ;
155155 var nbLines = result . Split ( '\n ' ) . Length - 1 ;
156156 Assert . Equal ( 50 , nbLines ) ;
@@ -159,38 +159,38 @@ public async Task HttpTest_Stream()
159159 [ Fact ]
160160 public async Task HttpTest_Bytes ( )
161161 {
162- const string page = @"https://httpbin .org/bytes/1024" ;
162+ const string page = @"https://httpbingo .org/bytes/1024" ;
163163 var result = await GetAsync ( page ) . ReceiveBytes ( ) ;
164164 Assert . Equal ( 1024 , result . Length ) ;
165165 }
166166
167167 [ Fact ]
168168 public async Task HttpTest_StreamBytes ( )
169169 {
170- const string page = @"https://httpbin .org/stream-bytes/1024" ;
170+ const string page = @"https://httpbingo .org/stream-bytes/1024" ;
171171 var result = await GetAsync ( page ) . ReceiveBytes ( ) ;
172172 Assert . Equal ( 1024 , result . Length ) ;
173173 }
174174
175175 [ Fact ]
176176 public async Task HttpTest_SetCookie ( )
177177 {
178- const string page = @"https://httpbin .org/cookies/set?k1=v1" ;
178+ const string page = @"https://httpbingo .org/cookies/set?k1=v1" ;
179179 var result = await GetAsync ( page ) . ReceiveString ( ) ;
180180 var json = JsonDocument . Parse ( result ) ;
181- var cookies = json . RootElement . GetProperty ( "cookies" ) . Deserialize < Dictionary < string , string > > ( ) ;
181+ var cookies = json . RootElement . Deserialize < Dictionary < string , string > > ( ) ;
182182 Assert . Contains ( new KeyValuePair < string , string > ( "k1" , "v1" ) , cookies ) ;
183183 }
184184
185185 [ Fact ]
186186 public async Task HttpTest_SetCookieAgain ( )
187187 {
188- const string page1 = @"https://httpbin .org/cookies/set?k1=v1" ;
188+ const string page1 = @"https://httpbingo .org/cookies/set?k1=v1" ;
189189 await GetAsync ( page1 ) ;
190- const string page2 = @"https://httpbin .org/cookies/set?k1=v2" ;
190+ const string page2 = @"https://httpbingo .org/cookies/set?k1=v2" ;
191191 var result = await GetAsync ( page2 ) . ReceiveString ( ) ;
192192 var json = JsonDocument . Parse ( result ) ;
193- var cookies = json . RootElement . GetProperty ( "cookies" ) . Deserialize < Dictionary < string , string > > ( ) ;
193+ var cookies = json . RootElement . Deserialize < Dictionary < string , string > > ( ) ;
194194 Assert . Contains ( new KeyValuePair < string , string > ( "k1" , "v2" ) , cookies ) ;
195195 }
196196
@@ -199,14 +199,14 @@ public async Task HttpTest_SetCookies()
199199 {
200200 const string cookie1 = "k1=v1; Path=/; expires=Sat, 01-Jan-2050 00:00:00 GMT" ;
201201 const string cookie2 = "k2=v2; Path=/; expires=Fri, 01-Jan-2049 00:00:00 GMT" ;
202- var page1 = $@ "https://httpbin .org/response-headers?Set-Cookie={ WebUtility . UrlEncode ( cookie1 ) } &Set-Cookie={ WebUtility . UrlEncode ( cookie2 ) } ";
202+ var page1 = $@ "https://httpbingo .org/response-headers?Set-Cookie={ WebUtility . UrlEncode ( cookie1 ) } &Set-Cookie={ WebUtility . UrlEncode ( cookie2 ) } ";
203203 var response1 = await GetAsync ( page1 ) ;
204204 response1 . Headers . TryGetValues ( "set-cookie" , out var respCookies ) ;
205205 Assert . Equal ( new List < string > { cookie1 , cookie2 } , respCookies ) ;
206- const string page2 = @"https://httpbin .org/cookies" ;
206+ const string page2 = @"https://httpbingo .org/cookies" ;
207207 var result = await GetAsync ( page2 ) . ReceiveString ( ) ;
208208 var json = JsonDocument . Parse ( result ) ;
209- var cookies = json . RootElement . GetProperty ( "cookies" ) . Deserialize < Dictionary < string , string > > ( ) ;
209+ var cookies = json . RootElement . Deserialize < Dictionary < string , string > > ( ) ;
210210 Assert . Contains ( new KeyValuePair < string , string > ( "k1" , "v1" ) , cookies ) ;
211211 Assert . Contains ( new KeyValuePair < string , string > ( "k2" , "v2" ) , cookies ) ;
212212 }
@@ -216,23 +216,23 @@ public async Task HttpTest_DeleteCookie()
216216 {
217217 Skip . If ( DeviceInfo . Platform == DevicePlatform . Android && DeviceInfo . Version . Major == 7 , "Failing on Android 24-25" ) ;
218218
219- const string page1 = @"https://httpbin .org/cookies/set?k1=v1" ;
219+ const string page1 = @"https://httpbingo .org/cookies/set?k1=v1" ;
220220 await GetAsync ( page1 ) ;
221- const string page2 = @"https://httpbin .org/cookies/delete?k1" ;
221+ const string page2 = @"https://httpbingo .org/cookies/delete?k1" ;
222222 var result = await GetAsync ( page2 ) . ReceiveString ( ) ;
223223 var json = JsonDocument . Parse ( result ) ;
224- var cookies = json . RootElement . GetProperty ( "cookies" ) . Deserialize < Dictionary < string , string > > ( ) ;
224+ var cookies = json . RootElement . Deserialize < Dictionary < string , string > > ( ) ;
225225 Assert . DoesNotContain ( new KeyValuePair < string , string > ( "k1" , "v1" ) , cookies ) ;
226226 }
227227
228228 [ Fact ]
229229 public async Task HttpTest_DoNotUseCookies ( )
230230 {
231- const string page = @"https://httpbin .org/cookies/set?k1=v1" ;
231+ const string page = @"https://httpbingo .org/cookies/set?k1=v1" ;
232232 DisableCookies ( ) ;
233233 var result = await GetAsync ( page ) . ReceiveString ( ) ;
234234 var json = JsonDocument . Parse ( result ) ;
235- var cookies = json . RootElement . GetProperty ( "cookies" ) . Deserialize < Dictionary < string , string > > ( ) ;
235+ var cookies = json . RootElement . Deserialize < Dictionary < string , string > > ( ) ;
236236 Assert . Empty ( cookies ) ;
237237 }
238238
@@ -253,7 +253,7 @@ public async Task HttpTest_Protocol()
253253 [ Fact ]
254254 public async Task HttpTest_Timeout ( )
255255 {
256- const string page = @"https://httpbin .org/delay/5" ;
256+ const string page = @"https://httpbingo .org/delay/5" ;
257257 SetTimeout ( 1 ) ;
258258 await Assert . ThrowsAsync < TaskCanceledException > ( ( ) => GetAsync ( page ) ) ;
259259 }
@@ -284,7 +284,7 @@ public async Task HttpTest_GetWithNonEmptyRequestBody()
284284 [ Fact ]
285285 public async Task HttpTest_GetWithEmptyRequestBody ( )
286286 {
287- const string page = @"https://httpbin .org/get" ;
287+ const string page = @"https://httpbingo .org/get" ;
288288 var request = new HttpRequestMessage ( HttpMethod . Get , page )
289289 {
290290 Content = new StringContent ( "" )
0 commit comments