Skip to content

Commit bd2699b

Browse files
authored
adjust bookmark links, remove temp bookmarks (#45177)
1 parent ed77b75 commit bd2699b

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

.openpublishing.redirection.framework.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3502,11 +3502,11 @@
35023502
},
35033503
{
35043504
"source_path_from_root": "/docs/framework/network-programming/accessing-the-internet-through-a-proxy.md",
3505-
"redirect_url": "/dotnet/fundamentals/networking/http/httpclient#http-proxy"
3505+
"redirect_url": "/dotnet/fundamentals/networking/http/httpclient#configure-an-http-proxy"
35063506
},
35073507
{
35083508
"source_path_from_root": "/docs/framework/network-programming/automatic-proxy-detection.md",
3509-
"redirect_url": "/dotnet/fundamentals/networking/http/httpclient#http-proxy"
3509+
"redirect_url": "/dotnet/fundamentals/networking/http/httpclient#configure-an-http-proxy"
35103510
},
35113511
{
35123512
"source_path_from_root": "/docs/framework/network-programming/how-to-override-a-global-proxy-selection.md",
@@ -3522,7 +3522,7 @@
35223522
},
35233523
{
35243524
"source_path_from_root": "/docs/framework/network-programming/proxy-configuration.md",
3525-
"redirect_url": "/dotnet/fundamentals/networking/http/httpclient#http-proxy"
3525+
"redirect_url": "/dotnet/fundamentals/networking/http/httpclient#configure-an-http-proxy"
35263526
},
35273527
{
35283528
"source_path_from_root": "/docs/framework/network-programming/changes-to-the-system-uri-namespace-in-version-2-0.md",
@@ -3534,7 +3534,7 @@
35343534
},
35353535
{
35363536
"source_path_from_root": "/docs/framework/network-programming/how-to-enable-a-webrequest-to-use-a-proxy-to-communicate-with-the-internet.md",
3537-
"redirect_url": "/dotnet/fundamentals/networking/http/httpclient#http-proxy"
3537+
"redirect_url": "/dotnet/fundamentals/networking/http/httpclient#configure-an-http-proxy"
35383538
}
35393539
]
35403540
}

docs/core/extensions/httpclient-factory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ An <xref:Microsoft.Extensions.DependencyInjection.IHttpClientBuilder> is returne
220220

221221
:::code source="snippets/http/configurehandler/Program.cs" id="configurehandler":::
222222

223-
Configuring the `HttClientHandler` lets you specify a proxy for the `HttpClient` instance among various other properties of the handler. For more information, see [Proxy per client](../../fundamentals/networking/http/httpclient.md#http-proxy).
223+
Configuring the `HttClientHandler` lets you specify a proxy for the `HttpClient` instance among various other properties of the handler. For more information, see [Proxy per client](../../fundamentals/networking/http/httpclient.md#configure-an-http-proxy).
224224

225225
### Additional configuration
226226

docs/fundamentals/networking/http/http-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The request methods are differentiated via several factors, first by their _verb
4343
4444
## HTTP status codes
4545

46-
.NET provides comprehensive support for the HTTP protocol, which accounts for most internet traffic, with the <xref:System.Net.Http.HttpClient>. For more information, see [Make HTTP requests with the HttpClient class](httpclient.md). Applications receive HTTP protocol errors by catching an <xref:System.Net.Http.HttpRequestException>. HTTP status codes are either reported in <xref:System.Net.Http.HttpResponseMessage> with the <xref:System.Net.Http.HttpResponseMessage.StatusCode?displayProperty=nameWithType> or in <xref:System.Net.Http.HttpRequestException> with the <xref:System.Net.Http.HttpRequestException.StatusCode?displayProperty=nameWithType> in case the called method doesn't return a response message. For more information about error handling, see [HTTP error handling](httpclient.md#http-error-handling), and for more information about status codes, see [RFC 9110, HTTP Semantics: Status Codes](https://www.rfc-editor.org/rfc/rfc9110#name-status-codes).
46+
.NET provides comprehensive support for the HTTP protocol, which accounts for most internet traffic, with the <xref:System.Net.Http.HttpClient>. For more information, see [Make HTTP requests with the HttpClient class](httpclient.md). Applications receive HTTP protocol errors by catching an <xref:System.Net.Http.HttpRequestException>. HTTP status codes are either reported in <xref:System.Net.Http.HttpResponseMessage> with the <xref:System.Net.Http.HttpResponseMessage.StatusCode?displayProperty=nameWithType> or in <xref:System.Net.Http.HttpRequestException> with the <xref:System.Net.Http.HttpRequestException.StatusCode?displayProperty=nameWithType> in case the called method doesn't return a response message. For more information about error handling, see [HTTP error handling](httpclient.md#use-http-error-handling), and for more information about status codes, see [RFC 9110, HTTP Semantics: Status Codes](https://www.rfc-editor.org/rfc/rfc9110#name-status-codes).
4747

4848
### Informational status codes
4949

docs/fundamentals/networking/http/httpclient.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Make HTTP requests with the HttpClient
33
description: Learn how to make HTTP requests and handle responses with the HttpClient in .NET.
44
author: IEvangelist
55
ms.author: dapine
6-
ms.date: 03/06/2025
6+
ms.date: 03/09/2025
77
---
88

99
# Make HTTP requests with the HttpClient class
@@ -309,8 +309,6 @@ When you know an HTTP endpoint returns JSON, you can deserialize the response bo
309309

310310
In this code, the `result` value is the response body deserialized as the type `T`.
311311

312-
<a name="http-error-handling"></a>
313-
314312
## Use HTTP error handling
315313

316314
When an HTTP request fails, the system throws the <xref:System.Net.Http.HttpRequestException> object. Catching the exception alone might not be sufficient. There are other potential exceptions thrown that you might want to consider handling. For example, the calling code might use a cancellation token that was canceled before the request completed. In this scenario, you can catch the <xref:System.Threading.Tasks.TaskCanceledException> error:
@@ -346,8 +344,6 @@ There might be scenarios where you need to throw the <xref:System.Net.Http.HttpR
346344

347345
:::code source="../snippets/httpclient/Program.ThrowHttpException.cs" id="throw":::
348346

349-
<a name="http-proxy"></a>
350-
351347
## Configure an HTTP proxy
352348

353349
An HTTP proxy can be configured in one of two ways. A default is specified on the <xref:System.Net.Http.HttpClient.DefaultProxy?displayProperty=nameWithType> property. Alternatively, you can specify a proxy on the <xref:System.Net.Http.HttpClientHandler.Proxy?displayProperty=nameWithType> property.

0 commit comments

Comments
 (0)