Menu

URL rewrite

Help
Anonymous
2004-03-09
2004-03-09
  • Anonymous

    Anonymous - 2004-03-09

    I can see there are tones on codes to retrieve attributes / tags from the HTML

    Is there any sample code which teach how to:
    1. Retrieve HTML from the Internet, e.g. http://www.apache.org
    2. Rewrite all the image src attribute to make all the image src path as absoulte path
    3. Re-generate the code for the whole apache page.

    It should be grateful if any attachment / URL reference suggested.

    I am looking forward to your reply.

    Many thanks

     
    • Derrick Oswald

      Derrick Oswald - 2004-03-09

      URL rewriting is covered in the SiteCapturer (and WikiCapturer) sample applications. http://htmlparser.sourceforge.net/javadoc/org/htmlparser/parserapplications/SiteCapturer.html
      In this case it's used to copy a site to local storage, but the same idea can be used to rewrite the URLs however you want.

      Derrick

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.