• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 23
Mac Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Brandon Bushnell
Greenhorn
Posts: 23
Mac Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Were you thinking of something like this? http://www.java2s.com/Code/Java/Network-Protocol/Asimpleproxyserver.htm
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic