Forums Register Login

Where to start with JSON request/response data (CharlesProxy)

+Pie Number of slices to send: Send
Hey guys I'm not entirely sure how to word this problem, I'm really sorry if I sound like a complete idiot!

I've started learning Sockets and Internet protocols for Java a few months ago. I just got back from some Military training so it's a little dusty. However, my friend enlightened me on a really cool program called CharlesProxy. It allows you to use your Mac's IP address on your iPhone as a proxy, then any game you use it catches all of the input/output traffic.

The advantage of this is that a lot of really useful information can be seen, ex: Leaderboards, Player Bases, etc.

Instead of having to do this in CharlesProxy, I'd really like to transfer this into programming so I can parse all of the responses into a list for legibility!

Here's what the request looks like:


Other info:
URL: http://gcios.gree-apps.net/hc/index.php/json_gateway?svc=BatchController.call
Content-Type: application/json; charset=utf-8;

And the response is packed with a bunch of data that includes the player names, etc. in the leader boards that I'm searching for!

This is getting to the path of something I've always wanted to learn in programming, interacting with other apps using packets/sockets/or web requests. The problem is I have a basic knowledge of the pieces to the puzzle but I don't know how to put them together. If someone can point me down the right path I'd be extremely grateful. Thank you SO much you guys!

Summary: CharlesProxy allows me to see traffic of an app on my iPhone on the same network. In a response to one of the requests it returns back the players in the leaderboard. How would I go through these steps using Java instead (Connecting, requesting, handling a response)? The pieces are all in front of me but I don't know how to put them together!
+Pie Number of slices to send: Send
Still hoping one of the seasoned Java programmers stumble across this, although the solution may be way easier then what it seems. I'd greatly appreciate your time and help with getting into the right direction. Thanks again guys!
+Pie Number of slices to send: Send
A teeny tiny vulgar attempt to get you to buy our stuff
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 884 times.
Similar Threads
Creating a leaderboard.
Leaderboard help
Curious about leaderboard?
Writing an online leaderboard - easy/hard?
Using wsdl api key in Rest/Json web service for iPhone
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:03:37.