Windows WinINet (desktop apps, .NET, Java)

Used by: apps using WinINet, .NET Framework, .NET, Java.

Windows WinINet (desktop apps, .NET, Java) runs PAC files in the same script engine as Windows WinHTTP (system services, BITS). This page lists only the behaviour that differs from it, or that was not measured here; everything else is the same. The table what WinHTTP and WinINet share and where they differ compares the two.

Helper library

Emulated helper library (CC0-1.0).

Where it differs from Windows WinHTTP (system services, BITS)

Later ranges list only what changes compared with the range before.

Windows 11 WinINet (11-25H2)

Measured on Windows 11 25H2 in October 2026. Apps that use the system proxy settings through WinINet, .NET or Java see the host in lower case. Java and some Windows components also cut the path from http:// URLs. Test your file with this profile on /check/.

BehaviourValueSource
DNS lookupssync
The script runs once and waits on each DNS call. Windows keeps no table of names during one run: answers that arrive are kept by the Windows DNS cache for as long as the DNS record allows, so repeats are cheap, but when the DNS server does not answer, every call waits about 12 s again, even inside one run (measured on Windows 11, 2026-10-15). A request runs the script twice in a row, and so waits twice (24 s for one such lookup), when it makes the program download the PAC file, which is the first request and the first one after Windows has dropped the file (in the lab after about 6 minutes without use), and when Windows downloads any PAC file while the request's script is running (lab, 2026-10-16).
lab, verified 2026-10-16
International host names passed in punycode (xn--)true
An international host name such as bücher.example reaches the script in its ASCII form, xn--bcher-kva.example, in lower case. The other labels of the name are lower-cased too.
lab, verified 2026-10-15
IPv6 address keeps its letter casetrue
An IPv6 address keeps its letters as written, for example [FD00::A1], although host names are lower-cased.
lab, verified 2026-10-15
Host lower-cased by the enginetrue
WinINet, .NET and Java lower-case the host, and the scheme and host part of the URL, before the script runs. The path keeps its case.
lab, verified 2026-10-15
Answer reused per hostper_host
A program reuses the answer for a host for its later http requests to that host, even when the path or the port differs, so a rule on the path is not checked again. In the lab the script ran for the first request to a host; later http requests to that host, also on another port and from a new connection handle in the same program, got that first answer. https requests and other hosts ran the script again. The answers are kept until the PAC file is downloaded again, which in the lab happened on one schedule for all programs, about every 10 to 11 minutes (once not for 22 minutes), so the first new download came between about 1 and 11 minutes after a program started; at that moment every kept answer is dropped, however recently it was used. Windows also forgets the file of a program that has not used it for about 6 to 7 minutes (a request or one of the scheduled downloads counts as use; up to 5.5 minutes it was always kept), and at a scheduled download it downloads only some of the files again and forgets the rest; the next request of such a program downloads the file itself. Programs that use the same PAC address share one loaded copy of the script. The caching headers of the PAC file (Cache-Control, Expires, Last-Modified) made no difference: the files of all programs were downloaded again at the same moments, always in full; only a program's own download sometimes asked whether the file had changed, and a changed file was downloaded in full and used at once (October 2026).
lab, verified 2026-10-16
URL passed to FindProxyForURLhttps_to_origin
For https:// URLs the script sees only scheme, host and port, for example https://www.example.com:8443/. http:// URLs reach the script with path, query and #fragment. A user name and password written before the host are removed for every scheme (measured with a WinINet program, October 2026).
lab, verified 2026-10-15

Function availability

Derived from each engine's vendored helper library plus its native bindings (see engines).
Functionchromium
<=51
chromium
>=52
firefox
all
pacparser
<=1.4.6
pacparser
>=1.5.1
winhttp
11-25H2
wininet
11-25H2
reference
all
isPlainHostNameyesyesyesyesyesyesyesyes
dnsDomainIsyesyesyesyesyesyesyesyes
localHostOrDomainIsyesyesyesyesyesyesyesyes
isResolvableyesyesyesyesyesyesyesyes
isInNetyesyesyesyesyesyesyesyes
dnsResolveyesyesyesyesyesyesyesyes
myIpAddressyesyesyesyesyesyesyesyes
dnsDomainLevelsyesyesyesyesyesyesyesyes
shExpMatchyesyesyesyesyesyesyesyes
weekdayRangeyesyesyesyesyesyesyesyes
dateRangeyesyesyesyesyesyesyesyes
timeRangeyesyesyesyesyesyesyesyes
alertyesyesyesnoyesyesyesyes
dnsResolveExyesyesnoyesyesyesyesno
myIpAddressExyesyesnoyesyesyesyesno
isResolvableExyesyesnoyesyesyesyesno
isInNetExyesyesnoyesyesyesyesno
sortIpAddressListyesyesnononoyesyesno

Rules with notes for wininet

  • PAC-C001Hostname pattern applied to url instead of host

    WinINet and .NET programs passed http URLs with the path; Java and some Windows system components passed http URLs without it. lab, verified 2026-10-11

  • PAC-C011Very short or trailing-dot dnsDomainIs pattern

    A trailing dot is kept in host and url, in a direct proxy query and in real requests of a WinINet program; dnsDomainIs(host, ".example.test") is false. lab, verified 2026-10-15

  • PAC-C012IPv4 loopback/private ranges handled, IPv6 equivalents not

    Desktop programs that use WinINet pass an IPv6 address in brackets and with its letters as written ([FD00::A1] stays [FD00::A1]), although they lower-case ordinary host names. lab, verified 2026-10-15

  • PAC-C018Upper-case letters in a hostname pattern

    Programs using WinINet, .NET Framework, .NET 8 and Java passed the host lower-cased, and the host part of url too; the path keeps its case. An IPv6 address keeps its letters ([FD00::A1] stays [FD00::A1]). lab, verified 2026-10-15

  • PAC-E014Non-ASCII characters in code

    An internationalised host arrives in lower-case punycode, in host and in url, also with capitals in the other labels; measured both with a direct proxy query and with real requests of a WinINet program. lab, verified 2026-10-15

  • PAC-K006HTTPS proxy keyword without a PROXY fallback

    A desktop program's own request goes to the HTTPS proxy over TLS with the request inside. When TLS to that proxy fails (wrong certificate name, or a port without TLS), the request goes on to the next PROXY entry of the list. lab, verified 2026-10-15

  • PAC-K009Case-sensitive host comparisons without lower-casing host

    Programs using WinINet, .NET Framework, .NET 8 and Java passed the host lower-cased, and the host part of url too; the path keeps its case. An IPv6 address keeps its letters ([FD00::A1] stays [FD00::A1]). lab, verified 2026-10-15

  • PAC-K013Routing decided by myIpAddress()

    The same answers as WinHTTP in every setup measured (first adapter in Windows' order, by interface metric). lab, verified 2026-10-14

  • PAC-K020JavaScript syntax newer than ES2017 (?., ??, object spread)

    Same script engine as Windows (WinHTTP); the same syntax fails to load. lab, verified 2026-10-11

  • PAC-K021Decision depends on the URL path or query

    Programs that use the Windows proxy settings reuse the answer for the first http request to a host for later http requests to that host, also with another path or port; https URLs reach the script as https://host:port/. lab, verified 2026-10-15

Last updated: