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
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
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
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
.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
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
> 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
.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()
-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
>
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
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()
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
# 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
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
14 matches
Mail list logo