Post Reply 
[help] Google Preview...
Oct. 20, 2008, 02:38 PM
Post: #5
RE: [help] Google Preview...
ProxRocks Wrote:i found "a" fix, not sure if it's "the" fix...

Code:
,'//\h',

That looks like a valid relative url to me.

See here: http://www.ietf.org/rfc/rfc1808.txt

Quote:2.3. Specific Schemes and their Syntactic Categories

Each URL scheme has its own rules regarding the presence or absence
of the syntactic components described in Sections 2.1 and 2.2. In
addition, some schemes are never appropriate for use with relative
URLs. However, since relative URLs will only be used within contexts
in which they are useful, these scheme-specific differences can be
ignored by the resolution process.

...snip...

2.4.3. Parsing the Network Location/Login

If the parse string begins with a double-slash "//", then the
substring of characters after the double-slash and up to, but not
including, the next slash "/" character is the network location/login
(<net_loc>) of the URL. If no trailing slash "/" is present, the
entire remaining parse string is assigned to <net_loc>. The double-
slash and <net_loc> are removed from the parse string before continuing.

All in all, it seems like a clever way to avoid the "scheme" issue of http: or https:.
Let the browser figure it out.
Nice. I'll have to remember that.

z12
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[help] Google Preview... - ProxRocks - Oct. 19, 2008, 01:39 AM
RE: [help] Google Preview... - ProxRocks - Oct. 19, 2008, 01:28 PM
RE: [help] Google Preview... - lnminente - Oct. 20, 2008, 02:10 PM
RE: [help] Google Preview... - ProxRocks - Oct. 20, 2008, 02:22 PM
RE: [help] Google Preview... - z12 - Oct. 20, 2008 02:38 PM
RE: [help] Google Preview... - ProxRocks - Oct. 20, 2008, 04:10 PM
RE: [help] Google Preview... - lnminente - Oct. 20, 2008, 02:54 PM
RE: [help] Google Preview... - z12 - Oct. 20, 2008, 04:48 PM
RE: [help] Google Preview... - ProxRocks - Oct. 20, 2008, 06:58 PM
RE: [help] Google Preview... - z12 - Oct. 20, 2008, 07:06 PM
RE: [help] Google Preview... - ProxRocks - Oct. 20, 2008, 08:51 PM
RE: [help] Google Preview... - z12 - Oct. 20, 2008, 11:35 PM

Forum Jump: