Request content with cURL

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. If you want to get the data for a location, you need to run the List available edge server locations operation first to get edgeLocationId. And if you want to run this operation for an IP, you may need to verify an IP to check if it belongs to an edge server. If you provide neither a location nor an edge server IP, then Edge Diagnostics runs the operation using a random edge server IP.

Query Params
string

For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Body Params

Collects data to use in the curl request.

string
length ≥ 1

HTTP client IP from where the request initiated. You need to provide either this value or edgeLocationId.

string
length ≥ 1

Unique identifier for an edge server location closest to your end users. To get this value, run the List available edge server locations operation first. You need to provide either this value or edgeIp.

string
enum

IP version to use to run the operation, either IPV4 or IPV6.

Allowed:
requestHeaders
array of strings
length ≥ 0

Customized headers for curl request in the format header: value. Check Pragma headers for the list of Akamaized Pragma headers you can use here.

requestHeaders
boolean

Runs curl from a Site Shield map. To learn more, check Site Shield requests.

sensitiveRequestHeaderKeys
array of strings
length ≥ 0

Sensitive requestHeaders you don't want to store in the database after running the request. Check Sensitive headers to see the list of request headers treated as sensitive by default.

sensitiveRequestHeaderKeys
string
length ≥ 1

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

uri
required

URL you want to get the raw HTML for.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json