You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Alex <al...@optonline.net> on 2006/04/10 09:25:59 UTC

[httpclient] how to imitate scripting enable browser property

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)

 

 

Thanks


Re: [httpclient] how to imitate scripting enable browser property

Posted by Bindul Bhowmik <bi...@gmail.com>.
Alex,

On 4/10/06, Alex <al...@optonline.net> 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
httpclient-user@jakarta.apache.org (I have copied to that list).
>
>
>
>
>
> Thanks
>
>
>

Bindul

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [httpclient] how to imitate scripting enable browser property

Posted by Bindul Bhowmik <bi...@gmail.com>.
Alex,

On 4/10/06, Alex <al...@optonline.net> 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
httpclient-user@jakarta.apache.org (I have copied to that list).
>
>
>
>
>
> Thanks
>
>
>

Bindul

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org