From 603c738c43228574d1f499e8de327b823f82c983 Mon Sep 17 00:00:00 2001 From: vitalkrilov Date: Sat, 17 Dec 2022 22:24:05 +0000 Subject: [PATCH] webview_proxy: added PHP-script which can be installed on your Web-server and be a proxy for WebView browser git-svn-id: svn://kolibrios.org@9886 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/network/webview_proxy/README.txt | 19 +++++++++++++++++++ contrib/network/webview_proxy/proxy.php | 13 +++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 contrib/network/webview_proxy/README.txt create mode 100644 contrib/network/webview_proxy/proxy.php diff --git a/contrib/network/webview_proxy/README.txt b/contrib/network/webview_proxy/README.txt new file mode 100644 index 000000000..6c22a127e --- /dev/null +++ b/contrib/network/webview_proxy/README.txt @@ -0,0 +1,19 @@ +Web Proxy for WebView Browser (/programs/cmm/browser) +===================================================== + +How to use it? +============== + +1. Put this proxy.php to your WebServer which: +- supports PHP +- has curl binary which can be called in shell + +2. Edit UserAgent in $your_useragent variable in proxy.php if needed + +3. Change content of $your_local_page_address: +- you should write path from HTTP-server root to your file (if proxy.php (or any other name) is in /srv/http/dir1/proxy.php on your disk, then use '/dir1/proxy.php') +- if you renamed proxy.php as index.php: + - if your browser calls something like http://yoursite.domain/dir1/index.php?site=..., then nothing should be changed + - if your browser calls something like http://yoursite.domain/dir1/?site=..., then remove 'index.php' at path ending (example: '/dir1/') + +4. Change a proxy address in WebView source code (line where is something like http://somename.domain/?site=) to your address with '?site=' at the end. Recompile the browser. diff --git a/contrib/network/webview_proxy/proxy.php b/contrib/network/webview_proxy/proxy.php new file mode 100644 index 000000000..c9c647d61 --- /dev/null +++ b/contrib/network/webview_proxy/proxy.php @@ -0,0 +1,13 @@ +