class check(webapp.RequestHandler):
def get(self):
url = self.request.get('url')
self.response.out.write(url)
class MainHandler(webapp.RequestHandler):
def get(self):
url = "http://google.com"
query_args = {'url':url}
check = urllib.urlencode(query_args)
test = urlfetch.fetch('/check'+check)
def main():
application = webapp.WSGIApplication([('/', MainHandler),('/check',check)],
debug=True)
wsgiref.handlers.CGIHandler().run(application)
if __name__ == '__main__':
main()
but result is always
raise InvalidURLError(str(e))
InvalidURLError: ApplicationError: 1
i can't find anything in docu about how to do something like this,
maybe someone can help me? i'm preparing that check function for
javascript ajax call, that's the reason why i'm using fetch for this.
thnx
----------
oooo [who cares?]
http://blog.synopsi.com
test = urlfetch.fetch('http://yourappid.appspot.com/check?'+check)
2009/1/19 Gipsy Gopinathan <gipsy...@gmail.com>: