http://84.205.237.73/script/proxy.py?url="">
Some unexpected error occurred. Error text was: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
- mika -
P.S. I think you could also set some proxy up in your IIS so that e.g.
all the requests made to host/geoserver/ would redirect to host:443/ or
something like that..
george gpoul48 kirjoitti:
It is working without proxy only in localhost, but not from
the internet. That is why i used proxy. Is it possible to run without
proxy? Regarding iis i have no idea what it should be. IIS configured
and tested to run python without problem. Any idea?
thank you all for your concern
Date: Mon, 23 Feb 2009 11:02:36 +0200
From: [email protected]
To: [email protected]
CC: [email protected]; [email protected]
Subject: Re: [OpenLayers-Users] proxy not working
Hi Ivan and George,
I just tested the site and it seems that the request sent works. Also
the proxy works. But do you need proxy when using GetFeatureInfo?
maybe this has something to do with IIS?
- mika -
Ivan Grcic kirjoitti:
Hi,
first check if the normal request is working, without proxy. What does
firebug say if its not working?
On Mon, Feb 23, 2009 at 9:26 AM, george gpoul48 <[email protected]> wrote:
Hallo everyone!!
I use this proxy.py file and i am trying to get information for a map
feature clicking on it, but the computer returns this message:
"Some unexpected error occurred. Error text was:" Can anyone help me? Where
am i wrong?
See my map at http://84.205.237.73/default/mytest.aspx
Proxy.py code
#!C:/Python26/python.exe -u
import urllib2
import cgi
import sys, os
# Designed to prevent Open Proxy type stuff.
allowedHosts = ['84.205.237.73:443', 'www.openlayers.org', 'openlayers.org',
'labs.metacarta.com', 'world.freemap.in',
'prototype.openmnnd.org', 'geo.openplans.org',
'sigma.openplans.org',
'www.openstreetmap.org']
method = os.environ["REQUEST_METHOD"]
if method == "POST":
qs = os.environ["QUERY_STRING"]
d = cgi.parse_qs(qs)
if d.has_key("url"):
url = ""
else:
url = "" moz-do-not-send="true" class="EC_moz-txt-link-rfc2396E">"http://www.openlayers.org"
else:
fs = cgi.FieldStorage()
url = ""