• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebKit BaseURL problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebKit BaseURL problems


  • Subject: Re: WebKit BaseURL problems
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 28 Jul 2004 10:07:51 -0500

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>)

  • Prev by Date: Re: Default button surrounded by black square for Panther, not Jaguar (RESOLVED)
  • Next by Date: Re: What happened to my logging output ?!
  • Previous by thread: Re: WebKit BaseURL problems
  • Next by thread: NSDistributedNotification + refresh => bug ?
  • Index(es):
    • Date
    • Thread