1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Best way to track back calls made between server and user

Discussion in 'PHP & Perl' started by Saulyx, Jan 4, 2012.

  1. Saulyx

    Saulyx Junior Member

    Joined:
    Jan 10, 2010
    Messages:
    107
    Likes Received:
    5
    Hi there, so I'm building yet another bot with CURL, I've mastered a lot of CURL as it stands however this one I need to control JS site, as CURL doesn't support JS, I need to find a way to track where and how the forms are submitted.

    Heres the catch, firebug won't show anything, FORM submits to self without a refresh so it's handled via JS, but if it was, then firebug would show it right?

    Doesn't do it tho.. Is there a different tool I could use to track it?

    Or how do I track things such as what code was fired upon a click of a button?

    Any tips would be useful,

    Thanks
     
  2. confined

    confined Regular Member

    Joined:
    Jan 4, 2009
    Messages:
    216
    Likes Received:
    91
    Download Iron (port of google chrome without google callbacks) and use Menu -> Tools -> Developer Tools. it will show you all the calls.

    Load up the page, click the Wrench in the top right. Then goto tools->developer tools

    Then click the "Network" tab and it should list requests.. you want to look for POST requests if the form uses POST, and GET requests if it uses GET.

    If it's using javascript there's a chance you can find the function in the source code inside
    Code:
    <form onsubmit="return somejavascriptfunction();" method="post">
    

    download iron from here, it's open source too:
    Code:
    http://www.srware.net/en/software_srware_iron_download.php
    
     
  3. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    Use firebug, watch the console. AJAX requests will show up there with the URL and all the submitted variables.
     
  4. chatmasta

    chatmasta Junior Member

    Joined:
    Sep 1, 2007
    Messages:
    122
    Likes Received:
    38
    Another alternative is Firefox extension "Live HTTP Headers"
     
    • Thanks Thanks x 1