HREF to same server, different port

Greg Jorgensen gregj at pobox.com
Thu Jun 14 03:14:08 EDT 2001


Relative HTTP URLs are relative to the host header portion of the URL, so a
relative URL can't specify a different scheme, host, or port. You'll have to
take the URL apart, change the port number (or add it), and use the
resulting absolute URL.


--
Greg Jorgensen
PDXperts LLC
Portland, Oregon, USA
gregj at pobox.com



"Steve Holden" <sholden at holdenweb.com> wrote in message
news:OWi6PtJ9AHA.281 at cpmsnbbsa07...
> Sorry this is off-topic, but I'm trying to create a relative url to a
> different port on the same server (inheriting the server name or address
> from the current URL). I've tried //:8081/ and :8081/ and neither works.
>
> ANyone tell me how?
>
> regards
>  Steve
> --
>
> http://www.holdenweb.com/
>





More information about the Python-list mailing list