SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2010
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CURL - Track All requests

    Hi there,

    I was wondering if there is a way to track all the GET requests that are done during a transfer?

    For example, I am currently using the LiveHTTPHeader plugin in Firefox, and when I load a webpage, I can see the followings:



    Is there anyway to get similar info using CURL? If yes, wich parameters should I used?

    Thanks!

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Nope, there isn't. Unless you're in control of the source PHP of course, then you can add some FireBug logging.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  3. #3
    SitePoint Member
    Join Date
    Jun 2010
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I know that you can get the Headers using Curl so I thought that maybe it was possible to retrieve all Requests that were sent/received during the transfer...

  4. #4
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Your browser makes the additional requests for the media embedded within the source HTML, you could parse the HTML for this media though....

    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  5. #5
    SitePoint Member
    Join Date
    Jun 2010
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AnthonySterling View Post
    Your browser makes the additional requests for the media embedded within the source HTML, you could parse the HTML for this media though....

    Yeah I could, but the thing is the code I am trying to parse is called with Javascript so the only way I could fetch it is to use these requests..



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •