Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/williambailey/pacproxy
A no-frills local HTTP proxy server powered by a proxy auto-config (PAC) file
https://github.com/williambailey/pacproxy
Last synced: 3 months ago
JSON representation
A no-frills local HTTP proxy server powered by a proxy auto-config (PAC) file
- Host: GitHub
- URL: https://github.com/williambailey/pacproxy
- Owner: williambailey
- License: apache-2.0
- Created: 2015-04-04T15:57:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-06-14T22:09:43.000Z (over 2 years ago)
- Last Synced: 2024-08-02T01:26:28.023Z (6 months ago)
- Language: Go
- Size: 459 KB
- Stars: 121
- Watchers: 10
- Forks: 18
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pacproxy
========[![Build Status](https://travis-ci.org/williambailey/pacproxy.svg)](https://travis-ci.org/williambailey/pacproxy)
A no-frills local HTTP proxy server powered by a [proxy auto-config (PAC) file](https://web.archive.org/web/20070602031929/http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html). Especially handy when you are working in an environment with many different proxy servers and your applications don't support proxy auto-configuration.
```
$ ./pacproxy -h
pacproxy v2.0.6A no-frills local HTTP proxy server powered by a proxy auto-config (PAC) file
https://github.com/williambailey/pacproxyUsage:
-c string
PAC file name, url or javascript to use (required)
-l string
Interface and port to listen on (default "127.0.0.1:8080")
-v send verbose output to STDERR
``````bash
# shell 1
pacproxy -c 'function FindProxyForURL(url, host){ console.log("hello pac world!"); return "PROXY random.example.com:8080"; }'
# shell 2
export http_proxy="127.0.0.1:8080"
export https_proxy="127.0.0.1:8080"
curl -I "http://www.example.com"
```## License
> Copyright 2020 William Bailey
>
> Licensed under the Apache License, Version 2.0 (the "License");
> you may not use this file except in compliance with the License.
> You may obtain a copy of the License at
>
> http://www.apache.org/licenses/LICENSE-2.0
>
> Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> See the License for the specific language governing permissions and
> limitations under the License.