Get-Downloader
SYNOPSIS
Returns a Downloader object (System.Net.WebClient) set up.
SYNTAX
Get-Downloader [-url] <String> [[-ProxyLocation] <Uri>] [[-ProxyCredential] <PSCredential>] [-IgnoreProxy]
[<CommonParameters>]
DESCRIPTION
Returns a Downloader object configured with Proxy and Credential. This is used during the Chocolatey software Install Process, to retrieve metadata and to download the file.
EXAMPLES
EXAMPLE 1
Get-Downloader -Url https://chocolatey.org/api/v2
PARAMETERS
-url
Url to execute the request against.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProxyLocation
Url of the Proxy to use for executing request.
Type: System.Uri
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProxyCredential
Credential to be used by the proxy. By default it will try to use the cached credential.
Type: System.Management.Automation.PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IgnoreProxy
Bypass the proxy for this request.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.