-          Write a java program or jsp page that can take in a URL.-          And the program will fetch the content of the URL.-          The program will then parse the content to display the list of all images in the URL page.-          Plus point: the program can catch various styles of image tags represented in the page-          Plus point: the program can report / display detailed timing metrics of fetching this content including DNS time, connection time, first byte time, content download time.哪位能大概给我描述一下是什么意思,如何实现,本人的英文实在是差。谢谢了!!!

解决方案 »

  1.   

    写一个抓取给定URL的网页,解析之,然后列出该页面中所有的图片
    plus:样式中定义的图片同样抓取
           给出解析时间包括DNS解析时间,连接时间,第一个字节传输时间,网页下载时间英文不好,抱歉
      

  2.   

    谢谢。下面想基于上面讨论一下。我的想法是抓取使用httpclient做为抓取工具。应该通过给定的url得到一个输入流。
    那么现在的问题
    0。通过流转如何得到HTML页面中的图片
    1。如何计算DNS解析时间。
    2。连接时间。
    3。第一个字节的传输时间
    4。网页下载时间。
    5。样式中的图片是否包含在这个流里面呢。
    欢迎大家参与讨论。再次感谢for_cyan