The URL to validate and ping
Optional proxy server base URL (defaults to CONFIG_PROXY_URL)
Optional request timeout in milliseconds (defaults to 5000ms)
A promise that resolves with a result object containing isValid, isReachable, needsProxy, status, and optional error
Validates a URL's syntax and tests whether the server is reachable.
Strategy:
The function never throws — all failures are returned as part of the result object.