Re: Problem With proxi.cgi

2016-01-21 Thread Christopher Schultz
hy? Are you using proxi.cgi internally by your own web application? Or are you trying to proxy requests from a remote client to another server? (Or Both?) -chris >> From: gallett...@hotmail.com >> To: users@tomcat.apache.org >> Subject: RE: Problem With proxi.cgi >> Date: W

RE: Problem With proxi.cgi

2016-01-19 Thread Luciano Martin Galletti
ype Status report message description This server received an invalid response from a server it consulted when acting as a proxy or gateway. Apache Tomcat/7.0.67Why? > From: gallett...@hotmail.com > To: users@tomcat.apache.org > Subject: RE: Problem With proxi.cgi > Date: Wed, 20 J

RE: Problem With proxi.cgi

2016-01-19 Thread Luciano Martin Galletti
yes C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\examples\WEB-INF\cgi and http://localhost:8080/examples/cgi-bin/proxy.cgi now i see the openlayers website :) Thanks > Subject: Re: Problem With proxi.cgi > To: users@tomcat.apache.org > From: ma...@apache.org &g

Re: Problem With proxi.cgi

2016-01-19 Thread Mark Thomas
mples\WEB-INF\cgi\proxy.cgi And then you use: http://localhost:8080/examples/cgi-bin/proxy.cgi to access it. Mark > > >> From: gallett...@hotmail.com >> To: users@tomcat.apache.org >> Subject: RE: Problem With proxi.cgi >> Date: Tue, 19 Jan 2016 19:16:36 +00

RE: Problem With proxi.cgi

2016-01-19 Thread Luciano Martin Galletti
.cgi as text on http://localhost:8080/examples/cgi/proxy.cgi > From: gallett...@hotmail.com > To: users@tomcat.apache.org > Subject: RE: Problem With proxi.cgi > Date: Tue, 19 Jan 2016 19:16:36 + > > Ok now i've web.xml under > C:\Program Files\Apache Softwar

RE: Problem With proxi.cgi

2016-01-19 Thread Luciano Martin Galletti
mples/cgi/proxy.cgi > From: chuck.caldar...@unisys.com > To: users@tomcat.apache.org > Subject: RE: Problem With proxi.cgi > Date: Tue, 19 Jan 2016 18:54:40 + > > > From: Luciano Martin Galletti [mailto:gallett...@hotmail.com] > > Subject: RE: Problem With proxi.c

RE: Problem With proxi.cgi

2016-01-19 Thread Caldarale, Charles R
> From: Luciano Martin Galletti [mailto:gallett...@hotmail.com] > Subject: RE: Problem With proxi.cgi > Yes both xml files are inside Be precise; exactly which xml files are you referring to? > C:\Program Files\Apache Software Foundation\Tomcat > 7.0\webapps\examples\WEB-INF

RE: Problem With proxi.cgi

2016-01-19 Thread Luciano Martin Galletti
.environ["REQUEST_METHOD"] if method == "POST": qs = os.environ["QUERY_STRING"] d = cgi.parse_qs(qs) if d.has_key("url"): url = d["url"][0] else: url = "http://www.openlayers.org"; else: fs = cgi.FieldStorage()

Re: Problem With proxi.cgi

2016-01-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luciano, On 1/19/16 11:05 AM, Luciano Martin Galletti wrote: > Yes both xml files are inside C:\Program Files\Apache Software > Foundation\Tomcat 7.0\webapps\examples\WEB-INF while proxy.cgi is > in C:\Program Files\Apache Software Foundation\Tomcat >

RE: Problem With proxi.cgi

2016-01-19 Thread Luciano Martin Galletti
Yes both xml files are inside C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\examples\WEB-INF while proxy.cgi is in C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\examples\WEB-INF\cgi > Subject: Re: Problem With proxi.cgi > To: users@tomcat.apache.org

Re: Problem With proxi.cgi

2016-01-19 Thread Mark Thomas
NT_TYPE"]} > body = sys.stdin.read(length) > r = urllib2.Request(url, body, headers) > y = urllib2.urlopen(r) > else: > y = urllib2.urlopen(url) > > # print content type header > i = y.info()

RE: Problem With proxi.cgi

2016-01-19 Thread Luciano Martin Galletti
i don't know if this help to understand where is the problem but in log file i've: gen 19, 2016 4:00:40 PM org.apache.catalina.core.ApplicationContext log INFORMAZIONI: Marking servlet cgi as unavailable gen 19, 2016 4:00:40 PM org.apache.catalina.core.StandardContext loadOnStartup GRAVE: Servlet

RE: Problem With proxi.cgi

2016-01-19 Thread Luciano Martin Galletti
# print content type header i = y.info() if i.has_key("Content-Type"): print "Content-Type: %s" % (i["Content-Type"]) else: print "Content-Type: text/plain" print print y.r

Re: Problem With proxi.cgi

2016-01-19 Thread Mark Thomas
On 19/01/2016 14:32, Luciano Martin Galletti wrote: > I’m tryng to use a proxy.cgi for my app developed in openlayer. > > > But when i try to use the url of the cgi i can read the test of the file > proxy.cgi and it’s not executed. > > > I’ve modified the server.xml adding: That should be web

Problem With proxi.cgi

2016-01-19 Thread Luciano Martin Galletti
I’m tryng to use a proxy.cgi for my app developed in openlayer. But when i try to use the url of the cgi i can read the test of the file proxy.cgi and it’s not executed. I’ve modified the server.xml adding: cgi org.apache.catalina.servlets.CGIServlet d