good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: communicating with webservers.by sundialsvc4 (Abbot) |
on Jun 19, 2014 at 12:43 UTC ( [id://1090454]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|