commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bindul Bhowmik" <>
Subject Re: [httpclient] how to imitate scripting enable browser property
Date Tue, 11 Apr 2006 04:15:40 GMT

On 4/10/06, Alex <> wrote:
> Does anybody know how to 'imitate' and setup a javascript enabled browser
> with httpclient or whatever else? I need to login to a URL (which gives form
> if javascript is enabled), and get its Inputstream. (source code of the
> form, etc)

HttpClient is not a browser. To achieve what you are looking for you
will need a javascript parser. You may use httpclient to execute HTTP
requests only.

In your case, I think the page you are trying to get runs some kind of
test to check if javascript is enabled on the browser. So you will
have to imitate that, but HttpClient will not help you in that, it can
only get the page data for you.

Hope this helps.

By the way, commons-user is not the correct mailing list for http
client related queries. You should direct your emails to (I have copied to that list).
> Thanks


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message