获取网址 [英] obtain url
本文介绍了获取网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须从网站上收集一些重定向的网址。我可以使用像这样的get方法获取它们"www.sample.com/jump.php?list_id = 16531"。
并将其重定向到另一个站点。例如,"www.sample.com/jump" .php?listing_id = 16531" ---> http://www.templateblocks.com/
我有大约5000个listing_id。
我想知道我怎么能做一个机器人来获取和保存网址。
i have to collect some redirected urls from a web site. i can obtain them using get method like this "www.sample.com/jump.php?listing_id=16531".
and it redirecting to another site.
for example "www.sample.com/jump.php?listing_id=16531"--->http://www.templateblocks.com/
i have about 5000 listing_id.
i wonder that how can i do a bot to obtain and save urls.
推荐答案
System.Net和System.Uri主题应该去这个论坛:
http://forums.msdn.microsoft.com/en-US/ncl/threads/
-Steve
< BR> PS试用 HttpWebResponse。 Headers
System.Net and System.Uri topics should go to this forum:
http://forums.msdn.microsoft.com/en-US/ncl/threads/
-Steve
P.S. Try out HttpWebResponse.Headers
这篇关于获取网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文