You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by "Graham Dumpleton (JIRA)" <ji...@apache.org> on 2007/04/11 13:26:32 UTC
[jira] Closed: (MODPYTHON-132) Expose ap_construct_url() in request
object.
[ https://issues.apache.org/jira/browse/MODPYTHON-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Graham Dumpleton closed MODPYTHON-132.
--------------------------------------
> Expose ap_construct_url() in request object.
> --------------------------------------------
>
> Key: MODPYTHON-132
> URL: https://issues.apache.org/jira/browse/MODPYTHON-132
> Project: mod_python
> Issue Type: Improvement
> Components: core
> Affects Versions: 3.3
> Reporter: Graham Dumpleton
> Assigned To: Graham Dumpleton
> Fix For: 3.3
>
>
> Apache provides the function ap_construct_url(). Its purpose is:
> char *ap_construct_url (pool *p, const char *uri, const request_rec *r)
> This function builds a fully qualified URI string from the path specified
> by uri, using the information stored in the request record r to determine
> the server name and port. The port number is not included in the string
> if it is the same as the default port 80.
> For example, imagine that the current request is directed to the virtual
> server www.modperl.com at port 80. Then the following call will return
> the string http://www.modperl.com/ index.html:
> char *url = ap_construct_url(r->pool, "/index.html", r);
> This may be a solution to issue previously discussed about how to create a full URL for purpose of doing a redirect.
> Even if not perfect, should be exposed as req.construct_url(). After all, the Apache folks are more likely to get this correct and maintain it, better than we can do our own version in Python.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.