• 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: Ports for stringWithContentsOfURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ports for stringWithContentsOfURL


  • Subject: Re: Ports for stringWithContentsOfURL
  • From: "gMail.com" <email@hidden>
  • Date: Thu, 23 Sep 2010 09:57:19 +0200
  • Thread-topic: Ports for stringWithContentsOfURL

Hi Andy, thank you.
Yes, I use stringWithContentsOfURL:encoding:error: and my clients trapped
the error. The [error localizedDescription] says it can't reach the file
"http//www.mywebsite.com/abc.txt" while on my machine/office I can.

The
[[error userInfo] objectForKey:@"NSUnderlyingError"] localizedDescription]
on the client's machine is empty while on my machine/office, if I disconnect
the wi-fi, I get the error message "This computer¹s Internet connection
appears to be offline."

My client can quite reach the same file http//www.mywebsite.com/abc.txt
using Safari, so I think he has some problem at the ports. To be honest my
application appends an info at the end of the url, like this"
abc.txt?version=123 when invoking stringWithContentsOfURL:encoding:error

Any idea on how to solve this problem?

--
Leo


> Da: Andy Lee <email@hidden>
> Data: Fri, 17 Sep 2010 08:58:29 -0400
> A: "gMail.com" <email@hidden>
> Cc: <email@hidden>
> Oggetto: Re: Ports for stringWithContentsOfURL
>
> stringWithContentsOfURL: is deprecated.  I suggest using
> stringWithContentsOfURL:encoding:error: or
> stringWithContentsOfURL:usedEncoding:error: and logging the error or
> displaying it with +alertWithError: so those users can tell you the exact
> reason for failure.  It might help to print the URL being passed so you are
> absolutely sure it's the URL you think it is.
>
> --Andy
>
>
> On Sep 17, 2010, at 8:47 AM, gMail.com wrote:
>> Hi,
>> which port must be open on the Mac in order to get a response from the
>> server when calling stringWithContentsOfURL ?
>> My method calls a small file posted on my web site, so the path is a
>> http://www...
>> It works pretty well, but some of my clients say that they get a nil
>> response, even if they can properly reach my web site with Safari. So I
>> presume they have some port closed on their machine. Or can be the firewall?
>>
>> Thank you
>> --
>> Leonardo
>
>


_______________________________________________

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

References: 
 >Re: Ports for stringWithContentsOfURL (From: Andy Lee <email@hidden>)

  • Prev by Date: RE: NSTableView display issue
  • Next by Date: Tooltip flickers and disappear.
  • Previous by thread: Re: Ports for stringWithContentsOfURL
  • Next by thread: Programmatic View Question
  • Index(es):
    • Date
    • Thread