Skip to content

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:

  1. Public URL: It's a global address accessible from any place on the internet. A typical format is:
  • http(s)://www.example.com
  1. 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.x to 172.31.x.x, and 192.168.x.x are 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.x to 100.127.x.x) addresses.
  1. Ports: A port does not make a URL private or public, the host does. https://api.example.com:8443 works if the host is public; http://localhost:8080 and http://192.168.1.10:3000 do not.

Valid URLs for Websites or API Endpoints

  • http://example.com
  • http://www.example.com
  • http://www.example.com?query1=value1&query2=value2
  • http://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 URLs for Websites or API Endpoints

  • https://example.com
  • https://www.example.com
  • https://www.example.com?query1=value1&query2=value2
  • https://api.example.com/v2/resources/1?query1=value1&query2=value2