Project

General

Profile

Actions

Feature #603

closed

Add proxy support for internal HTTP functions

Added by Chris Buechler almost 14 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
05/20/2010
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:

Description

In some environments it's difficult to pull packages, auto update, etc. because you need to hit a proxy for outbound access. There should be a central advanced configuration item for proxy info, which is used by every function that uses HTTP internally.

Actions #1

Updated by Jim Pingle almost 14 years ago

Every function that makes a remote HTTP/HTTPS call (file_get_contents, fopen, etc) can take a context parameter with proxy info. It's explained here:

http://www.php.net/manual/en/function.stream-context-create.php
http://php.net/manual/en/function.file-get-contents.php
http://php.net/manual/en/function.fopen.php

We'd just need a proxy settings page somewhere (with text explaining that it would be used for these kinds of calls and it is not related to the squid package, etc)

For things done at the OS level, fetch(3) (not fetch(1)) explains the environment variables needed to setup proxy information.

Actions #2

Updated by Ermal Luçi almost 14 years ago

We use curl or xmlrpc for important stuff so those need to have proxy support too.

Actions #3

Updated by Jim Pingle almost 14 years ago

Curl on the CLI has proxy command line arguments, and the PHP module can use curl_setopt() to use proxy options. Looks like our /etc/inc/xmlrpc_client.inc supports proxies also.

Looks pretty well supported all-around.

Actions #4

Updated by Jim Pingle about 12 years ago

  • Status changed from New to Feedback

This was done quite a while ago, Proxy Settings are under System > Advanced, on the Misc tab.

Are there any areas that do not respect this value that need fixed yet?

Actions #5

Updated by Chris Buechler about 12 years ago

  • Status changed from Feedback to Resolved
Actions #6

Updated by Chris Buechler almost 8 years ago

  • Target version deleted (Future)
Actions

Also available in: Atom PDF