cURL request

New-EdgeDiagnosticsCurl

Synopsis

Request content with cURL.

Syntax

New-EdgeDiagnosticsCurl -URL <String> -IPVersion <String> -EdgeIP <String> [-SpoofEdgeIP <String>] [-RequestHeaders <String>] [-RunFromSiteshield] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-EdgeDiagnosticsCurl -URL <String> -IPVersion <String> -EdgeLocationID <String> [-SpoofEdgeIP <String>] [-RequestHeaders <String>] [-RunFromSiteshield] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-EdgeDiagnosticsCurl -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Requests content using the cURL command to provide the raw HTML for a URL, including request headers. You can run this operation for a specific location, an edge server IP, or a Site Shield map.

To get the data for a location, run the Get-EdgeDiagnosticsLocations operation first to get the edgeLocationId.

To run this operation for an IP, run the Test-EdgeDiagnosticsIP operation to verify if it belongs to an edge server. If you don't provide a location or an edge server IP, then Edge Diagnostics runs the operation using a random edge server IP.

Parameters

‑AccountSwitchKey

An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey.

‑Body
Conditionally required

Request body, either as a PSCustomObject or string. This parameter supports pipelining.

‑EdgeIP
Conditionally required

An IP address that belongs to the edge server and you want to get the logs for.

‑EdgeLocationID
Conditionally required

The ID of an edge server location closest to end users experiencing issues with the URL.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑IPVersion
Conditionally required

The IP version for the Connectivity problems scenario to use to run cURL and MTR commands, either IPV4 or IPV6.

‑RequestHeaders

Customized headers for the curl request in the format header: value. The request includes Akamai Pragma headers by default.

‑RunFromSiteshield

Runs Connectivity problems from a Site Shield map.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

‑SpoofEdgeIP

The IP of the edge server you want to serve traffic from.

‑URL
Conditionally required

A fully qualified URL you want to get the error statistics for. You need to provide either this value or a -CPCode.

Related Links