php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #731 HTTP proxy for fopen-wrapper
Submitted: 1998-09-09 09:30 UTC Modified: 2001-02-10 12:57 UTC
From: miko at cnt dot pl Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.3 OS: all
Private report: No CVE-ID: None
 [1998-09-09 09:30 UTC] miko at cnt dot pl
I would like to have include()/require() (and possibly other) functions 
using HTTP/FTP proxy. It would be great if I could decide on every php 
page which proxy server to use (if any at all - not needed for local URLs).

In short examples:
  include($url, $proxyhost, $proxyport)
or
  setproxy($proxyhost, $proxyport); include($url)
or even better (adding protocol):
  setproxy($proxyproto, $proxyhost, $proxyport); include($url).
Example:
  setproxy("http","w3cache1.com",8080);
  setproxy("ftp","ftpproxy.proxy.com",8080);
  include("http://www.domain.com"); include("ftp://ftp.domain2.com");

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 12:27 UTC] jimw@php.net
refiled against 4.0.
 [2001-02-10 12:57 UTC] jimw@php.net
really refiled.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 11:01:29 2024 UTC