• 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: James Lin <email@hidden>
  • Date: Tue, 27 Oct 2009 23:35:28 +0800

The sticky point right now is: the same url string used with stringWithContentsOfURL works perfectly when accessed using a browser.
Which means my php script is in perfect working order.


But when accessed using stringWithContentsOfURL, then it doesn't work!

I can tell my ISP is not going to take up the responsibility for this one, because it works in a browser...

That's why i am asking for alternatives to stringWithContentsOfURL...

James
On 2009/10/27, at 下午11:25, Roland King wrote:


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: John Pannell <email@hidden>
    • Re: Alternative to stringWithContentsOfURL
      • From: Jens Alfke <email@hidden>
    • Re: Alternative to stringWithContentsOfURL
      • From: Roland King <email@hidden>
    • Re: Alternative to stringWithContentsOfURL
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: Alternative to stringWithContentsOfURL
      • From: "email@hidden" <email@hidden>
References: 
 >Alternative to stringWithContentsOfURL (From: James Lin <email@hidden>)
 >Re: Alternative to stringWithContentsOfURL (From: Dave Carrigan <email@hidden>)
 >Re: Alternative to stringWithContentsOfURL (From: Roland King <email@hidden>)

  • Prev by Date: Re: Alternative to stringWithContentsOfURL
  • Next by Date: Re: keyPathsForValuesAffectingValueFor<key>: not updating immediately
  • Previous by thread: Re: Alternative to stringWithContentsOfURL
  • Next by thread: Re: Alternative to stringWithContentsOfURL
  • Index(es):
    • Date
    • Thread