-
Notifications
You must be signed in to change notification settings - Fork 0
Start HttpListener
github-actions edited this page Jul 25, 2026
·
1 revision
external help file: Pretendpoint.dll-Help.xml Module Name: Pretendpoint online version: https://docs.microsoft.com/dotnet/api/system.net.httplistener schema: 2.0.0
Creates and starts an HTTP listener, for testing HTTP clients.
Start-HttpListener [-Port] <Int32[]> [-AuthenticationSchemes <AuthenticationSchemes>] [-Realm <String>]
[-IgnoreWriteExceptions] [-ProgressAction <ActionPreference>] [<CommonParameters>]
{{ Fill in the Description }}
PS C:\> $Listener = Start-HttpListener 8080
Creates and starts an HTTP listener at http://localhost:8080/
Ports on the localhost to bind to.
Type: Int32[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseClient authentication methods to support.
Type: AuthenticationSchemes
Parameter Sets: (All)
Aliases:
Accepted values: None, Digest, Negotiate, Ntlm, IntegratedWindowsAuthentication, Basic, Anonymous
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe RFC2617 authentication realm.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseIndicates that response writes shouldn't generate exceptions.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.