Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

See as View

by freak
on May 03, 2004 at 22:51 UTC ( #350169=perlquestion: print w/ replies, xml ) Need Help??
freak has asked for the wisdom of the Perl Monks concerning the following question:

How to make an LWP connection so that it will be counted as a View(so that the counters on the website - that counts how many people had entered - will count this connection as a View(as if someone had ectually opened this website in his browser)) ?

Comment on See as View
Re: See as View
by b10m (Vicar) on May 03, 2004 at 22:55 UTC

    It depends on how you define "the counters". If that is based on the webserver's logfile, nothing should be done in addition to fetching the page. If it's based on some image (sooo 1990's ;-) you will have to request the image, not the site. But that's cheating ;-)

    --
    b10m

    All code is usually tested, but rarely trusted.
      by counters i mean the little "coxes with numbers" that counts enteries to the website. and what does it mean to "fetch the page" ?

        Fetching/Requesting a page is rather simple using LWP::Simple. Please read that first, for it contains more information than I could post here. If, after that, you still have questions (which I doubt), please post the code that fails here, so we can have a look at it.

        Update: You've asked close to the same question before. Once again, please do read the documentation first, try something out and post failing code, so we could help you. We're not going to write (cheating) scripts for you here.

        --
        b10m

        All code is usually tested, but rarely trusted.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://350169]
Approved by matija
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2014-11-28 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (196 votes), past polls