A command line is used to order pizza online.ProgramAlthough the procedure is simple, it makes sense and is truly creative.
The home page of this program is a http://www.beigerecords.com/cory/pizza_party/ with a source program to download a demo video.
In fact, there is nothing magical about this program. It is simply to use a program to send an HTTP request to the website to simulate the process of logging on to the website on the web and ordering pizza.
I downloaded the source program and looked at it. As expected, a Perl script with less than 1000 lines completed this amazing job. In my opinion, although I cannot order pizza on the website it accesses, this program is quite meaningful.
This short program demonstrates how to use Perl to receive and process an HTTP request and response, therefore, Cookie processing is also included. This program also contains a standard man page, which supports standard * nix-style parameter processing. It can be said that through learning such a small program, we can quickly have a preliminary understanding of using Perl for simple programming, especially web-related programming. Through simple modifications to this applet, you can use it in many different places. It is really good for beginners.
I decided to have time to study this program, so that when I write a blog later, I may be able to publish it to my blog and csdn blog at the same time with one click. However, it is a headache to enter a graphic verification code when logging on to a csdn blog. It seems that it is unlikely to be fully automated ......