Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

communicating with webservers.

by Anonymous Monk
on Jun 19, 2014 at 04:15 UTC ( #1090392=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, i am making a program that can communicate with webservers, and i was wondering if it's ok if i can use as an example, see if i can login here, post a message and things like that. Otherwise i will look pretty rediculous bothering you guys, and this way i can ask possible questions more effectively with this site as an example. Hope its ok, plz let me know.

Replies are listed 'Best First'.
Re: communicating with webservers.
by Corion (Pope) on Jun 19, 2014 at 06:49 UTC

    Automated posting of chat messages here is highly discouraged. Automated posting of nodes is forbidden.

      So if you do it, you've got to be convincing. All these years nobody's figured out I'm written in Lisp as an AI research project.

      J/K, of course. To the OP, please do not automate posts of any kind to PerlMonks. Set up your own test server if you want a playground. This is a live site, and cluttering it up with test garbage on top of the already annoying load of spam damages its signal to noise ratio.


Re: communicating with webservers.
by sundialsvc4 (Abbot) on Jun 19, 2014 at 12:43 UTC

    No, you should do it all on your own system!   Simply set up your own command-line webserver (trivially easy to do with Perl ...), listening to some port-number (greater than 1024) such as localhost:2222, and run it from an open command-line window.   The responses from this script will be identical to those that would be produced by any server “on the Web,” but much easier to deal with because you can see and control both sides ... all without annoying anybody!   Even though the data does not “go” anywhere, for diagnostic (and testing) purposes it is the same.

    For a production system, I would go one step further and write .t test-scripts which, among other things, launch the test server and send messages to it, verifying that the correct responses are obtained.   Such test-results will be applicable to what the system can be expected to do when it is talking to the real Web.

Re: communicating with webservers.
by Anonymous Monk on Jun 19, 2014 at 04:44 UTC

    Would that be a pizza delivery program? I hear NodeReaper has many fond memories in that regard.

    One large pizza: 2 lbs. One delivery boy: 100 lbs. In any case, I'd suggest messaging him with your question directly.
    (Log in, and type in the chatterbox: /msg NodeReaper Your question.)

Re: communicating with webservers.
by Anonymous Monk on Jun 19, 2014 at 04:35 UTC

    I just received a warning on facebook when i was using the console window, and im not looking for trouble, therefore my question.

      Services that want to allow automation provide an API. From then sounds of it you've encountered a warning from Facebook specifically because they don't want you doing things they way you are. Consider searching for their API.

Re: communicating with webservers.
by Anonymous Monk on Jun 19, 2014 at 08:10 UTC

    I'll keep it in mind, ty.

Re: communicating with webservers.
by Anonymous Monk on Jun 19, 2014 at 18:11 UTC

    Maybe you should test these adds on your own systems

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1090392]
Approved by sundialsvc4
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2018-06-18 16:42 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (110 votes). Check out past polls.