Overview
Use these cURLs to confirm if there is network connectivity from a host to LaunchDarkly or a Relay instance.
Solution
Making a raw network request to LaunchDarkly server-side streaming endpoint without a Relay Proxy:
curl -i -H "Authorization: SDK_KEY" https://stream.launchdarkly.com/all
Making a network request to LaunchDarkly server-side streaming endpoint with the Relay Proxy:
curl -i -H "Authorization: SDK_KEY" http://YOUR-RELAY-PROXY-ENDPOINT/all
Making a network request to LaunchDarkly server-side streaming endpoint with the Relay Proxy and a web proxy/web server:
curl -i -H "Authorization: SDK_KEY" http://YOUR-RELAY-PROXY-ENDPOINT/all --proxy YOUR-WEB-PROXY-URL
Making a network request to LaunchDarkly client-side streaming endpoint – JavaScript, React, Electron, Vue, or Node.js (client) SDKs:
curl -i https://clientstream.launchdarkly.com/eval/CLIENT-SIDE-ID/eyJrZXkiOiJhbm9ueW1vdXMiLCJhbm9ueW1vdXMiOnRydWV9
Making a network request to LaunchDarkly mobile streaming endpoint – Android, iOS, React Native, Flutter, .NET (client), C++ (client) SDKs:
curl -i -H "Authorization: MOBILE_KEY" https://clientstream.launchdarkly.com/meval/eyJrZXkiOiJhbm9ueW1vdXMiLCJhbm9ueW1vdXMiOnRydWV9