Greetings, web2py I mention that I use in my work. and we have a proxy that we restrict the output by user name and password
I have solved the problem properly configuring the proxy on the computer where I have installed debian web2py nano /etc/profile adding the following lines: export http_proxy = http://proxy.uc.edu.ve:5010/ export https_proxy = http://proxy.uc.edu.ve:5010/ export ftp_proxy = http://proxy.uc.edu.ve:5010/ 2011/2/11 Massimo Di Pierro <massimo.dipie...@gmail.com> > Thanks for your comments. > > WHen you need urllib, and web2py.python makes outbound connections you > should not need a proxy server or any proxy configuration as far as I > can tell (and I am not sure about your setup). This looks more of a > firewall issue. > > On Feb 11, 5:19 am, whowhywhat <mads...@gmail.com> wrote: > > web2py is the first framework i actually enjoy using. :) .. been > > advocating it to everyone i meet these days. I sincerely thank the > > entire web2py community for everything. > > > > I have been developing a small web2py application for intranet use at > > the place where i work. During development i used windows (i carry > > web2py on a thumb drive). At work we use a proxy for net access and in > > windows i have no problems with web2py accessing the net using the > > proxy. > > I can use urllib to fetch webpages etc. > > > > To deploy the app i am using Ubuntu. I have deployed web2py using both > > apache as well as Cherokee using WSGI. The application runs fine. > > however the web2py environment is not able to fetch anything from the > > internet. urllib does not fetch any webpages. I have explicitly set > > the http_proxy environment variable (in /etc/environment, in the > > Cherokee startup script). I need to fetch data from the web, mostly > > for openID authentication. I am not sure what's wrong. > > > > how can i make web2py/python use the proxy server (http_proxy)? > -- Díaz Luis TSU Analisis de Sistemas Universidad de Carabobo Facultad de Odontología<http://www.odontologia.uc.edu.ve/index.php?option=com_content&view=article&id=102&Itemid=85>