user1412469
user1412469

Reputation: 279

What is kCFErrorDomainCFNetwork?

In the last question I posted, I have been getting a NSURLErrorDomain when I append a JSON string into my URL using the GET method. Now, someone pointed out that I should percent encode the whole JSON string so that it will be URL compatible. When I did that however, I received another kind of error: kCFErrorDomainCFNetwork code 303. I researched about this and unfortunately I couldn't find a suitable explanation for this error. The closest thing I understand about this error is that it seems like I'm sending huge memory to the server.

Can anyone give me a nice and simple explanation about this?

Upvotes: 1

Views: 4874

Answers (1)

Peter
Peter

Reputation: 4741

I am not sure about the details of your specific error but according to the Apple Documentation

kCFErrorHTTPParseFailure      = 303

So it looks like the encoding wasn't understood by the server - maybe there was some part of the JSON string to blame. Without taking a look at the JSON string I am just guessing :-)

Wiki on percent encoding

Upvotes: 1

Related Questions