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

Re: Alternative to stringWithContentsOfURL


  • Subject: Re: Alternative to stringWithContentsOfURL
  • From: Roland King <email@hidden>
  • Date: Tue, 27 Oct 2009 23:25:05 +0800


On 27-Oct-2009, at 11:16 PM, Dave Carrigan wrote:


On Oct 27, 2009, at 8:11 AM, James Lin wrote:

Hi all,

I am still having the mysterious error of "Internal Error 500" message returned from stringWithContentsOfURL.

If "Internal Error 500" is the contents of the string after you create it using +stringWithContentsOfURL, then the problem is with the server, and changing to use something else is not going to change that fact.




Exactly. You need to go find out what is being sent to the server when you use that method and why it's erroring. You're missing a parameter or you encoded something wrong or there's a cookie you need to set or something. There is nothing wrong with the cocoa method, you're either not setting it up right, or you need to add more stuff or it's possible that the request does need things that stringWithContentsOfURL: can't add, but at this point you haven't figured that out and don't know what, if anything they are, so no other method will help you.

The error log from the server would be of use.

HTTP is simple. Look at what you're sending out with some kind of snoop between your non-cocoa way and your cocoa way, the answer lies there. _______________________________________________

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


  • Follow-Ups:
    • Re: Alternative to stringWithContentsOfURL
      • From: James Lin <email@hidden>
References: 
 >Alternative to stringWithContentsOfURL (From: James Lin <email@hidden>)
 >Re: Alternative to stringWithContentsOfURL (From: Dave Carrigan <email@hidden>)

  • Prev by Date: Re: Alternative to stringWithContentsOfURL
  • Next by Date: Re: Alternative to stringWithContentsOfURL
  • Previous by thread: Re: Alternative to stringWithContentsOfURL
  • Next by thread: Re: Alternative to stringWithContentsOfURL
  • Index(es):
    • Date
    • Thread