Re: stringWithContentsOfURL returns nil
Re: stringWithContentsOfURL returns nil
- Subject: Re: stringWithContentsOfURL returns nil
- From: <email@hidden>
- Date: Tue, 05 Feb 2008 22:19:42 +0100
Hi, thank you for your prompt reply.
The url is a php file always present on my web site.
Me and all of my clients can always reach this file.
Only one client gets a null string. And his firewall on MacOSX 10.4.11 is
off. Together with the link I pass some data like the version number, e.g.
http://www.mydomain.com/check.php?sn=123456
Could the computer block just this kind of calls, because they send data?
If so, what should I look to fix the trouble? As I have said the client's
firewall is off. But, could an extra unknown firewall or control work on his
modem?
Yes, the client generally can see my web pages with Safari.
But I can't give him just the link of the php file.
The php file has the following privileges: rw-r--r--
Its parent folder's permissions are: rwx--x--x
Are those permissions correct? If not, why do the other clients can properly
read the php page?
Last, I have tried to call a non existing domain, e.g.
http://xxx.oadosa.poiopisadp
and I got a null string with a different error message:
Error Domain=NSCocoaErrorDomain Code=260 UserInfo=0x14a908f0 "The file
³check.php² does not exist."
Instead if I just call a non existing file on my web site I get a 404 error
page so the string returned by stringWithContentsOfURL is not null.
Then I suppose the trouble comes from the permissions? How to fix this?
Best Regards
--
Lorenzo
email: email@hidden
> From: Hamish Allan <email@hidden>
> Date: Tue, 05 Feb 2008 19:11:52 +0000
> To: email@hidden
> Subject: Re: stringWithContentsOfURL returns nil
>
> On Feb 5, 2008 7:06 PM, <email@hidden> wrote:
>
>> The error description is
>> "File could not be opened." Domain=NSCocoaErrorDomain Code=256
>> UserInfo={}
>
> That is just the sort of error message I would expect if the URL could
> not be reached. So without knowing what the URL is, whether it can be
> reached by other means, etc., it's pretty much impossible to diagnose.
>
> Hamish
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden