Its simple: Browsers (Firefox works the same) query GET http://wpad/wpad.dat
.
If a web server named wpad is resolveable, it should serve wpad.dat, a script file analog to netscape PAC files. MIME type must also be “application/x-ns-proxy-autoconfig”.