Apply relative URL to an absolute URL

Posted by Jeffrey Aylesworth on Stack Overflow See other posts from Stack Overflow or by Jeffrey Aylesworth
Published on 2010-03-28T01:03:05Z Indexed on 2010/03/28 1:13 UTC
Read the original article Hit count: 295

Filed under:
|

I have an absolute URL, and the URL that a link on that page points to. Is there a builtin function to apply a relative URL to an absolute URL?

Ie. "http://example.com/some/url", "/some/url/I/want/to/go/to" => "http://example.com/some/url/I/want/to/go/to"

© Stack Overflow or respective owner

Related posts about python

Related posts about url