Re: openURL Question
Re: openURL Question
- Subject: Re: openURL Question
- From: Matt Wood <email@hidden>
- Date: Tue, 10 Jun 2003 01:32:52 +0100
Hello,
Perhaps openURL is checking to see if any HTML is returned, rather than
what the web server response is?
If your non-existant URL is pointing to a page that doesn't exist, on a
server which does exist, it may be set up to return the normal 404
'page not found' error - or perhaps one of the fancy custom error pages
that Apache lets you set up - both of which would return HTML, which
may fool openURL into thinking a connection has been made.
Alternatively - the docs could be wrong... surely not. : )
Not sure which is worse - incorrect documentation or no documentation
at all!
You may well have thought of this - just thought I would throw in my
2p...
~ Matt
On Monday, June 9, 2003, at 10:14 pm, Henry McGilton wrote:
What Ho All,
I am working with a chunk of code to create a URL to
a web page and then use NSWorkspace to open that URL.
As part of the testing process, I deliberately inject a
non-existent URL into the mix. The browser reports that
the web page does not exist.
However, I expected the openURL method to return NO to
indicate that the URL was not opened successfully.
But it returns YES.
The documentation states:
'returns YES if the location was successfully opened,
NO otherwise'
So, what does the documentation story *really* mean?
Best Wishes,
........ Henry
===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.com
|
===============================+============================
_______________________________________________
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.
_______________________________________________
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.