Icrosoft's ASP (Active server Page) technology greatly facilitates access to the database on the network, and because the ASP differs from the CGI requirements (reducing the resource footprint of the server), and ASP with Windows NT, 2000 of the combination of ASP technology is widely used in today's internet, but do not know that you have carefully thought about it! In addition to leveraging ADO access to the database and the use of several other built-in components, ASP can not do anything else, compared to perl,php and other programs, the ASP's function looks very simple, and lack of functionality; but older than after all, he left a hand for everyone, that is ASP components ( About the concept of components, now a lot of, you can not be mistaken, through the development of components you can do other languages (such as php,perl,c++) can do everything, even in some ways more than, this article seeks to show you the ASP components of the powerful functions, However, because of the ASP component itself (use of unregistered components), may sometimes use will appear unstable state, however, this article is to show you something and provide a way to you, and not other, so the lack of place to ask for forgiveness!
Code thinking: Generally speaking, we submit a form to a search engine program, the search engine to obtain the submitted data and then processed, return the results; however, this kind of thing is actually to obtain a submitted variable, we can use another way to directly follow the connection to access the search engine, for example, you can use
Yeah's homepage searches for a keyword "xuankong", or you can use the following connection "http://search.163.com/cgi-
Bin/search/engine/search.fcgi?key=xuankong "Get the results, this article is to access this direct connection using ASP's HTTP components, get the data that was originally returned in the Web page, and then output."
If this component can implement multithreading (if you can get data to different engines at the same time, do not need a single access and then get results) and code further optimization and improvement, it will greatly save your time, let you search at the same time to return multiple engine results!
Note: In the results of the search, because some of the engine's class uses the relative connection, so invalid (these results you can actually handle, but the author is too lazy, so do not want to spend that effort), but all the Web site and the Web page connection is valid, this article provides the code is only suitable for testing, Not suitable for specific applications, if you need specific applications, you need to use the appropriate HTTP components, or if you are a master of the program can write their own multithreaded components, about the HTTP component code, You can see in www.chinaasp.com, want to get more ASP components please visit www.aspcn.com!
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.