Skip to content

Commit ac5b9db

Browse files
committed
Rebase and minor edit
1 parent 0f0f942 commit ac5b9db

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

reference/7.6/Microsoft.PowerShell.Utility/Invoke-RestMethod.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 02/05/2025
5+
ms.date: 12/04/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-restmethod?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
aliases:
@@ -329,8 +329,8 @@ pipe.
329329
Invoke-RestMethod -Uri 'http://localhost/status' -PipeName 'MyLocalHttpPipe'
330330
```
331331

332-
The host portion of the `-Uri` isn't used for network routing when `-PipeName` is supplied, but it
333-
is included in the `Host` header of the HTTP request.
332+
The hostname portion of the **Uri** is ignored for network routing when you supply **PipeName**, but
333+
it's included in the `Host` header of the HTTP request.
334334

335335
## PARAMETERS
336336

@@ -1369,15 +1369,15 @@ Specifies the name of a local Windows named pipe to use instead of a TCP socket
13691369
HTTP request. This lets you communicate with services that expose an HTTP-compatible protocol over
13701370
a named pipe without opening a TCP port.
13711371

1372-
Only the local machine is supported. Remote / UNC pipe names aren't supported. Supplying a value
1373-
that doesn't correspond to a listening named pipe endpoint results in a connection failure.
1372+
Only the local machine is supported. Remote UNC pipe names aren't supported. Supplying a value that
1373+
doesn't correspond to a listening named pipe endpoint results in a connection failure.
13741374

1375-
When `-PipeName` is specified, the `-Uri` still determines the request path, query, and scheme used
1376-
to build the HTTP request. The host portion of the `-Uri` is ignored for network routing because
1377-
the named pipe transport is always local, but it still appears in headers such as `Host`.
1375+
When you specify **PipeName**, the hostname portion of the **Uri** is ignored for network routing.
1376+
The **Uri** still determines the request path, query, and scheme used to build the HTTP request. The
1377+
named pipe transport is always local, but the hostname still appears in HTTP headers.
13781378

1379-
Security and access control for the pipe are governed by the server that created the pipe. The
1380-
client (this cmdlet) doesn't modify pipe ACLs.
1379+
The server that creates the pipe governs security and access control for the pipe. This cmdlet,
1380+
acting as the client, doesn't modify pipe ACLs.
13811381

13821382
This parameter was added in PowerShell 7.6.
13831383

reference/7.6/Microsoft.PowerShell.Utility/Invoke-WebRequest.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 02/05/2025
5+
ms.date: 12/04/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
aliases:
@@ -410,8 +410,8 @@ pipe.
410410
Invoke-WebRequest -Uri 'http://localhost/status' -PipeName 'MyLocalHttpPipe'
411411
```
412412

413-
The host portion of the `-Uri` isn't used for network routing when `-PipeName` is supplied, but it
414-
is included in the `Host` header of the HTTP request.
413+
The hostname portion of the **Uri** is ignored for network routing when you supply **PipeName**, but
414+
it's included in the `Host` header of the HTTP request.
415415

416416
## PARAMETERS
417417

@@ -1360,15 +1360,15 @@ Specifies the name of a local Windows named pipe to use instead of a TCP socket
13601360
HTTP request. This lets you communicate with services that expose an HTTP-compatible protocol over
13611361
a named pipe without opening a TCP port.
13621362

1363-
Only the local machine is supported. Remote / UNC pipe names aren't supported. Supplying a value
1364-
that doesn't correspond to a listening named pipe endpoint results in a connection failure.
1363+
Only the local machine is supported. Remote UNC pipe names aren't supported. Supplying a value that
1364+
doesn't correspond to a listening named pipe endpoint results in a connection failure.
13651365

1366-
When `-PipeName` is specified, the `-Uri` still determines the request path, query, and scheme used
1367-
to build the HTTP request. The host portion of the `-Uri` is ignored for network routing because
1368-
the named pipe transport is always local, but it still appears in headers such as `Host`.
1366+
When you specify **PipeName**, the hostname portion of the **Uri** is ignored for network routing.
1367+
The **Uri** still determines the request path, query, and scheme used to build the HTTP request. The
1368+
named pipe transport is always local, but the hostname still appears in HTTP headers.
13691369

1370-
Security and access control for the pipe are governed by the server that created the pipe. The
1371-
client (this cmdlet) doesn't modify pipe ACLs.
1370+
The server that creates the pipe governs security and access control for the pipe. This cmdlet,
1371+
acting as the client, doesn't modify pipe ACLs.
13721372

13731373
This parameter was added in PowerShell 7.6.
13741374

0 commit comments

Comments
 (0)