Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: WebKit BaseURL problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebKit BaseURL problems



It's not counterintuitive when you reflect: When you are on the Web, URLs that don't end in file names get resolved to specific files (or CGIs, or whatever) by the HTTP server. The mapping between a particular directory and an index.html, or default.html, or something else, is specified by a global configuration file, as may be modified by a per-directory configuration file.

When you pull an .html file directly, there's no server to map directories to default files. You have to specify the file.

-- F

On 28 Jul 2004, at 2:57 AM, Jon Raphaelson wrote:

It worked!

Thank you very much... though that behavior seems extremely odd, and quite counter-intuitive to me.

But Thanks!!

Hi!

Try it without stringByDeletingLastPathComponent, e.g. /Users/jon/sites/index.html. Similar code to yours works for me if I create the url with the whole path.

And remember "If path begins with a tilde, it must first be expanded with stringByExpandingTildeInPath".

Regards,

Peter
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >WebKit BaseURL problems (From: Jon Raphaelson <email@hidden>)
 >Re: WebKit BaseURL problems (From: Peter Borg <email@hidden>)
 >Re: WebKit BaseURL problems (From: Jon Raphaelson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.