Definitely - that was one of the places I had to change in order to get it to work. The other place is in util.php where the code goes off to get favicons - that code also needs to know about getting through proxies (or it could be changed to use some of the PEAR HTTP functions perhaps) The changes I made are not worth sharing since I just coded in my own proxy directly rather than trying to do anything with configuration.
The changes I made are not worth sharing since I just coded in my own proxy directly rather than trying to do anything with configuration.
Hmm, I respectfully disagree! See, the problem here is that none of the developers has had to configure proxy servers in Gregarius so far, so we could come up with a generic solution, which could and could not work.
On the other hand, if you could provide us with a working example, it would be much easier for us to avoid mistakes and deliver a generic solution that is likely to work for everyone.
So I'd be most interested in your changes, if you are willing to share them. (Maybe via email? My address is my forum profile ;-)
In the Snoopy code there are two variables proxy_host and proxy_port which I set to my host and its port, and there is another called _isproxy which set to be true rather than false.
In util.php in getContentType
I changed the socket call to open a socket to my web proxy rather than the URL host and I changed the GET call to say :
Clearly there needs to be some kind of configuration control for proxies so that this behaviour can be made conditional. I don't know my way around the config system yet so didn't want to start hacking on it....
I think we should try to make all our calls to fetch url's (feeds and favicons) use snoopy and then expose Snoopy's config options in our admin->config section.
Just a note that Gregarius does not work on webservers intalled on a non-standard port. like http://example.com:8080/rss/ But it should be easy to fix that...