I have been trying to get the request url as follows
import webapp2
class MainPage(webapp2.RequestHandler):
def get(self):
print self.request.get('url')
app = webapp2.WSGIApplication([('/.*', MainPage)], debug=True)
when the request is
http://localhost:8080/index.html
it gives me something like
Status: 200 Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Content-Length: 70
what I need to get is something like
index.html
edit: so that I can check the string and display the correct html/template file accordingly.
I have already checked Request documentation and tried many alternatives yet I can't seem to find a solution. I'm quite new to web development. What am I missing?