https://github.com/miyako/4d-plugin-pacparser
4D implementation of pacparser
https://github.com/miyako/4d-plugin-pacparser
4d-plugin
Last synced: 19 days ago
JSON representation
4D implementation of pacparser
- Host: GitHub
- URL: https://github.com/miyako/4d-plugin-pacparser
- Owner: miyako
- License: mit
- Created: 2018-01-09T10:42:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-22T05:30:00.000Z (about 5 years ago)
- Last Synced: 2025-01-08T17:57:13.725Z (over 1 year ago)
- Topics: 4d-plugin
- Language: C
- Homepage:
- Size: 10.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


[](LICENSE)

# 4d-plugin-pacparser
4D implementation of [pacparser](https://github.com/manugarg/pacparser)
### Discussion
PAC, or [Proxy auto-config](https://en.wikipedia.org/wiki/Proxy_auto-config) is a text file that defines at least one JavaScript function, ``FindProxyForURL(url, host)``, which causes the user agent to use a particular proxy server or to connect directly. [``pacparser``](https://github.com/manugarg/pacparser) uses the [SpiderMonkey](https://en.wikipedia.org/wiki/SpiderMonkey) JavaScript engine to evaluate this function.
---
## Syntax
```
proxy:=PAC Find proxy (pac;url;host)
```
Parameter|Type|Description
------------|------------|----
pac|TEXT|
url|TEXT|
host|TEXT|
proxy|TEXT|
## Examples
```
$path:=Get 4D folder(Current resources folder)+"wpad.dat"
$pac:=Document to text($path;"utf-8")
$proxy:=PAC Find proxy ($pac;"http://www.google.com";"www.google.com")
```