Friday, April 17, 2015

Current request url with host name in rails

# request.env["REQUEST_URI"]
It return request url only without parameter.

http://www.google.com

# request.env["HTTP_REFERER"]

It return url with parameter.

http://www.google.com?q=text

No comments:

Post a Comment

FastAPI: The Modern Python Web Framework

  Introduction to FastAPI: The Modern Python Web Framework The world of web frameworks has always been competitive — from Django and Flask ...