模拟一个连接来自搜索引擎
生活随笔
收集整理的這篇文章主要介紹了
模拟一个连接来自搜索引擎
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
首先添加引用Microsoft.mshtml.dll和WatiN.Core.dll
using WatiN.Core;??
string live = "http://cnweb.search.live.com/results.aspx?q=test&go=&form=QBLH";
??????????????? IE ie = new IE(live);
??????????????? Link link = ie.Links[2];
??????????????? ((mshtml.HTMLAnchorElementClass)(link.HTMLElement)).href = "http://lovebanyi.cnblogs.com/?";
??????????????? link.Click();
??????????????? ie.Close();
?
?
什么地方會用到這個呢:
做流量統計的時候,
當一個頁面來源于google ,baidu時的特殊提示或處理。
推廣作弊
?
轉載于:https://www.cnblogs.com/lovebanyi/archive/2009/03/11/1408771.html
總結
以上是生活随笔為你收集整理的模拟一个连接来自搜索引擎的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: LPTSTR、LPCSTR、LPCTST
- 下一篇: SQL SERVER 优化 50法