The Bug of buying a train ticket website online is really a benefit for programmers.

Source: Internet
Author: User

The New Year's Eve is approaching, and it's time for the Spring Festival. Train tickets are naturally the most popular resources during this period. Unlike the past few decades, online ticketing, telephone booking, and real-name registration functions have been activated this year. Among them, the online ticketing function is the most visible thing for coders. After writing the program for so many years, it is finally useful.

As a code farmer, I have been writing this program for seven years. The earliest time was to set up a course selection program at the University (accurately speaking, it should be a course grabbing Program). Later, I helped my students with the ticket collection program, and then I used WebGame plug-ins and various packet capture analysis programs, I still remember the new network applications. Now, you can buy train tickets through the network. Of course, you can also write a program to log on, query tickets, and place orders.

Recently, the project was just launched, with a bunch of bugs and busy work. In addition, I went home by plane without buying train tickets, so there is not that much motivation and so much time to develop this program. The program is half written, login implementation, query implementation, and the order and payment functions are left. However, I think the payment function may be difficult, but I have not tried it yet, after all, this item needs to be paid under IE, and then captured for analysis, so debugging is not good.

Although my program is not completed, many programmers have released their own programs on the Internet, such

GoHome: http://code.google.com/p/go-home/
De Guang train ticket ASSISTANT: http://www.appinn.com/12306-auto-login-client/
12306 Booking Assistant: https://github.com/zzdhidden/12306
12306. cn network ticketing ASSISTANT: http://www.u-tide.com/fish/soft/44/

And so on.

I personally recommended is 12306 Booking Assistant: https://github.com/zzdhidden/12306 this program is actually very simple, is based on JQuery a JS file, in Chrome running effect is very good, I am also using Chrome.

In fact, these programs are similar. The main difference is that a Bug in the 12306 system is used to retry and submit data until the data is successfully submitted. This Bug occurs when the user submits the verification code for comparison and does not reset the verification code after comparison. As a result, when the user submits data again, the verification code passes the verification by using the same verification code. This Bug is actually very simple to fix, I have mentioned this Bug and fix in my blog more than three years ago, see: http://www.cnblogs.com/studyzy/archive/2008/06/04/1213192.html

Another problem is that the current verification code is too simple to be confused and can be easily identified by programs.

After all, this is also the first e-commerce operation by the Ministry of Railways. Although there are many shortcomings, it is gratifying to take the initiative to change the status quo. I hope the Bug of online ticket purchase will be retained all the time. I can use this Bug to brush the ticket the next time I buy a ticket. This is really a benefit that the Ministry of Railways has given to programmers! In the end, everyone can go back to home!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.