What is a Valid URL for a Load Test
Enter the full URL of your website or API, starting with http:// or https:// (for example https://www.example.com).
Only public URLs are supported. LoadFocus sends the requests from its own servers on the internet, so it cannot reach http://localhost or an address on your internal network. If a request URL points to a private address, the test is not run and you get the message "The test cannot run because the URL fields contain private IP addresses." The same happens when the host name resolves to a private address or does not resolve at all.
Here's a breakdown:
- Public URL: It's a global address accessible from any place on the internet. A typical format is:
http(s)://www.example.com
- Local URLs: These are addresses that typically point to a device's local environment or a private network. They are not accessible from the broader internet. Examples include:
http://localhost- Refers to the device you're currently using. Often used for local development.10.x.x.x,172.16.x.xto172.31.x.x, and192.168.x.xare the private IPv4 ranges (RFC 1918). They can't be accessed from outside the network. LoadFocus also refuses loopback (127.x.x.x), link-local (169.254.x.x) and shared address space (100.64.x.xto100.127.x.x) addresses.
- Ports: A port does not make a URL private or public, the host does.
https://api.example.com:8443works if the host is public;http://localhost:8080andhttp://192.168.1.10:3000do not.
Valid HTTP requests
Section titled “Valid HTTP requests”Valid URLs for Websites or API Endpoints
http://example.comhttp://www.example.comhttp://www.example.com?query1=value1&query2=value2http://api.example.com/v2/resources/1?query1=value1&query2=value2
Query parameters can go in the URL or in the Query Parameters field, see How to Use URL Query Parameters.
Valid HTTPS request
Section titled “Valid HTTPS request”Valid URLs for Websites or API Endpoints
https://example.comhttps://www.example.comhttps://www.example.com?query1=value1&query2=value2https://api.example.com/v2/resources/1?query1=value1&query2=value2