Thread: Google and c

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #23
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    If it works via AJAX, you have to figure out the format of the message passed back and forth. You could look at the raw transmission as memcpy suggests, but that may not help very much all by itself. You also need to find the javascript calls involved and see how the data in the message is serialized, where it comes from client side, and how the response is used. This will be tedious as google compacts their scripts and tend to use very uninformative and minimal variable names, etc. I haven't used the Chrome tools, but presuming they do something like Firebug, you should be able to watch the transmissions occurring and possibly trace the js calls. You then need to mimic their output (which you could do in C or python or whatever), keeping in mind that some of the information maybe, eg, a cookie value intended to prevent people from easily spoofing the service this way. It cannot be made impossible, nb., but it can be made more difficult: if a cookie is involved, you will have to figure out how it came to be, a way to get such a token first, and then use it properly in the "ajax" exchange.

    Unfortunately, Angel45, your understanding of how web applications work sounds a little simplistic, meaning you may have to learn a lot just to attempt this. Again, not impossible, but if the official API looks easy enough to use, it may be worth the $20 as it will save you literally days and days or weeks of study and experimentation, etc.

    http://en.wikipedia.org/wiki/Ajax_%28programming%29
    http://en.wikipedia.org/wiki/JSON
    Last edited by MK27; 04-05-2012 at 08:22 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The end of Google
    By Mario F. in forum General Discussions
    Replies: 34
    Last Post: 09-22-2010, 12:06 AM
  2. Reading Google Sketchup (.skp) or Google Earth (.kmz)
    By Zeeshan in forum Game Programming
    Replies: 9
    Last Post: 03-07-2008, 05:25 PM
  3. google down
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 07-28-2004, 03:11 PM

Tags for this Thread