I'm writing an app at work that uses RESTful services to post/get from our server.
There is a POST api that uses JSON in the body of the request to post answers to a quiz online and the number of correct answers is then returned.
Except it isn't working in my app. No matter how many answers I get correct I always get the response {total = 10, correct = 0} (total is the total number of questions).
So I asked the guy who wrote the server side to check and he said it's working correctly. When he posts up the same header/body/url as me he gets the correct "correct" number back.
I downloaded an app from the Mac App Store called RESTed and ran the request again, same response {total = 10, correct = 0} (I actually got 10/10 on this quiz).
The other dev guy said to download "WizTools REST Client" which is a java rest client. Did that ran the request and got the CORRECT response! {total = 10, correct = 10}.
I'm stuck now as I really can't see what is going wrong?! If I run it from Xcode (i.e. my app) and trace the request through a network logger I can see the body and headers going out and the incorrect response coming back. But then I take the body and header from the network logger and paste it into my java client and it gets the CORRECT response back!?!
Any ideas what the hell could be going on with this?
Users browsing this forum: No registered users and 7 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum