Announcement

#1 2011-06-08 22:28:24

sebhoff
Member
2011-06-06
4

Proxy server for outgoing HTTP connections?

Hi forum,
I've already asked this in a different thread, but it may be hidden there - so that's why I'm opening a new topic now:

If I click on "Check for upgrade", I get the error message "Unable to check for upgrade.". The reason is that all outgoing connection son the server have to go through a proxy. Is there a way to set this globally?

Thanks in advance for any hints!
Sebastian

Offline

 

#2 2011-06-10 19:11:18

flop25
Piwigo Team
2006-07-06
7037

Re: Proxy server for outgoing HTTP connections?

Hello

Well ... due to all the answers ^^, I'll notify a member of the team which worked on it


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2011-06-10 20:01:48

P@t
Piwigo Team
Nice
2007-06-13
4098

Re: Proxy server for outgoing HTTP connections?

I think it is possible, but core files have to be modified (fetchRemote function in admin/functions.inc.php)


P@t

Offline

 

#4 2011-06-11 23:36:51

sebhoff
Member
2011-06-06
4

Re: Proxy server for outgoing HTTP connections?

OK - thanks! I'm looking forward to a solution!
Best,
Sebastian

Offline

 

#5 2011-11-14 16:19:05

cherlihy
Member
2011-11-02
4

Re: Proxy server for outgoing HTTP connections?

Here is how I did it, I am currently behind a proxy and this works and tested on 2.3.0:

Open 'admin\include\functions.php' with a text editor.

Find:

Code:

@curl_setop($ch, CURLOPT_URL, $src);

should be around line 1819

add these 2 lines after it:

Code:

@curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0);
@curl_setopt($ch, CURLOPT_PROXY, 'your_proxy_server:8080');

UPDATE:  I just tried it on 2.3.1 and it worked as well.

Last edited by cherlihy (2011-11-14 16:21:58)

Offline

 

#6 2011-12-02 16:06:57

Jason
Guest

Re: Proxy server for outgoing HTTP connections?

I too have the issue where I can't check for upgrade due to being behind a proxy.  I tried the functions.php code change, but that hasn't helped either.  Likely due to me needing to specify credentials, but I'm unsure.

Any help would be much appreciated!

 

#7 2011-12-02 16:28:15

Jason
Guest

Re: Proxy server for outgoing HTTP connections?

Got it working by adding additional code for authentication:

curl_setopt ($ch, CURLOPT_PROXYUSERPWD, "user:pass");

 

#8 2011-12-03 16:37:35

flop25
Piwigo Team
2006-07-06
7037

Re: Proxy server for outgoing HTTP connections?

Jason wrote:

Got it working by adding additional code for authentication:

curl_setopt ($ch, CURLOPT_PROXYUSERPWD, "user:pass");

thx for sharing your solution


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact