Menu

HTTPClient with HTMLParser

Help
2005-08-17
2013-04-27
  • heiniebarnard

    heiniebarnard - 2005-08-17

    Good day everybody

    I would like to know how to use HTTPClient from Jakarta with the HMTLParser. I can parse the HTML text but it won't change the links and frames to incorporate the server path.

    Is there a way that I can get the URLConnection out of the HTTPClient and give it to the parser?
    I might do one of the following if this project would like to incorporate a HTTPClient. I shall add to the parser a new constructor public Parser(HTTPClient client) or I shall create my own MyParser extends Parser.

    Regards
    Heinie

     
    • Derrick Oswald

      Derrick Oswald - 2005-08-17

      A lot of the HTTPClient type functionality is located in the htmlparser http package, particularly ConnectionManager.
      It's likely that the URLConnection from the HTTPClient would be already consumed and hence empty. You will probably need to use a string to transfer the content.

       

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.