Get-RedirectedUrl

This function was introduced in version 0.1.0.

Aquire the url that is being redirected to when using the passed url parameter

Syntax

Get-RedirectedUrl `
    -url <Uri> `
    [-referer <Uri>] `
    [-NoEscape <>]

Description

When a website only supplies a url to the latest version, but that url is redirected to a different url to aquire the actual binary file. Then this function can be used to simplify that aquiral.

Aliases

None

Inputs

None

Outputs

The redirected url when one is found, otherwise returns the same url that was passed.

Required Parameters

-url <Uri>

The url to check for redirection

Property Value
Aliases
Position? 1
Globbing? false
Default Value
Accept Pipeline Input? false

Optional Parameters

-referer <Uri>

An optional parameter to use when a website requires the referer header to be used

Property Value
Aliases
Position? 2
Globbing? false
Default Value
Accept Pipeline Input? false

-NoEscape <SwitchParameter>

Property Value
Aliases
Position? named
Globbing? false
Default Value False
Accept Pipeline Input? false
GitHub