< Back

Get-Downloader

Mon Jan 13, 2020 1:30 am

NAME 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.





PARAMETERS

-url <String>

Url to execute the request against.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ProxyLocation <Uri>

Url of the Proxy to use for executing request.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ProxyCredential <PSCredential>

Credential to be used by the proxy. By default it will try to use the cached credential.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-IgnoreProxy [<SwitchParameter>]

Bypass the proxy for this request.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-Downloader -Url https://chocolatey.org/api/v2















RELATED LINKS