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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.