Lines Matching refs:url
17 * resolve_relative_url(url, environ)
209 """Reconstructs the URL from the WSGI environment.
215 url = environ['wsgi.url_scheme']+'://'
228 url += host
230 url += ':%s' % port
232 url += environ['SERVER_NAME']
235 url += ':' + environ['SERVER_PORT']
238 url += ':' + environ['SERVER_PORT']
241 url += quote(environ.get('SCRIPT_NAME',''))
243 url += quote(script_name)
246 url += quote(environ.get('PATH_INFO',''))
248 url += quote(path_info)
252 url += '?' + environ['QUERY_STRING']
254 url += '?' + querystring
255 return url
257 def resolve_relative_url(url, environ):
259 Resolve the given relative URL as being relative to the
261 for redirecting to a relative path. Note: if url is already
267 return urlparse.urljoin(cur_url, url)