Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. Web Proxy for WebView Browser (/programs/cmm/browser)
  2. =====================================================
  3.  
  4. How to use it?
  5. ==============
  6.  
  7. 1. Put this proxy.php to your WebServer which:
  8. - supports PHP
  9. - has curl binary which can be called in shell
  10.  
  11. 2. Edit UserAgent in $your_useragent variable in proxy.php if needed
  12.  
  13. 3. Change content of $your_local_page_address:
  14. - 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')
  15. - if you renamed proxy.php as index.php:
  16.   - if your browser calls something like http://yoursite.domain/dir1/index.php?site=..., then nothing should be changed
  17.   - if your browser calls something like http://yoursite.domain/dir1/?site=..., then remove 'index.php' at path ending (example: '/dir1/')
  18.  
  19. 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.
  20.