POST and GET methods

Discussion in 'General Programming Chat' started by anbukiller, Jan 12, 2009.

  1. anbukiller

    anbukiller Registered Member

    Joined:
    Jan 2, 2009
    Messages:
    61
    Likes Received:
    5
    I've written an HTTP wrapper in JAVA that implements the basic POST (i.e., to a form) and GET (i.e, retrieve the source code of any page) for any url.

    When I use POST or GET on my website (for which I have a page load counter) or on Youtube, it doesn't count as an official "hit" at all. Can the GET and POST method to constitute an page view? I am also accepting cookies btw.
     
  2. internetNinja

    internetNinja Junior Member

    Joined:
    Oct 27, 2008
    Messages:
    109
    Likes Received:
    99
    Occupation:
    Internet Marketing
    Location:
    Las Vegas, NV.
    I am not totally sure what you're asking here. Are you trying to update your counter on a pageview? If so, can you not write a function and have a <body onload="updatecount"()> or something?
     
  3. anbukiller

    anbukiller Registered Member

    Joined:
    Jan 2, 2009
    Messages:
    61
    Likes Received:
    5
    thanks, this is more or less what i was asking. as in, what is the criteria for counting as a "hit" or "page view" on yt and other sites.
     
  4. crashed

    crashed Senior Member

    Joined:
    Aug 13, 2008
    Messages:
    958
    Likes Received:
    1,201
    Occupation:
    Guru-slayer
    Location:
    Behind the VPN...
    It depends on the site that is being used, if a pixel needs to load on the page, or the headers that are sent. For example it filters googlebot etc out of the page views by examing the headers.

    There is a list of headers here:
    http://johnex.se/header_accept.php?cmd=list