0

I'm building an iPhone app that uses REST to talk to the server.

A couple of the APIs were getting a valid but incorrect response so I spoke to the server dev and he said they were working for him.

I downloaded RESTed from the Mac App Store and checked it on there and it got the same incorrect response.

The server dev checked again but insisted it was working.

I downloaded WizTools RESTClient and tried it on there and that worked and got the correct response!?

I'm lost for what to do now as I have never seen or heard of this before.

Can anyone provide any hints/tips of where to go from here?

Fogmeister
  • 76,236
  • 42
  • 207
  • 306

2 Answers2

1

Gah!

I found the problem. I wasn't setting the Content-Type of the request to application/json.

Once that was set it worked with no problems.

Fogmeister
  • 76,236
  • 42
  • 207
  • 306
0

Capture the requests sent using the two diffent client libraries, compare them and find out what is different.

From there you should be able to determine what is causing the different results, but if not, update your question with the two captures and we can analyse it further.

Community
  • 1
  • 1
Tom Howard
  • 6,516
  • 35
  • 58