Posted by David Dorward on 10/18/06 20:17
key9 wrote:
> I am writting some download application using c++
> the main idea is using "socket" to get html page.
> and find the download link ,and using HTTP protocol to download it.
So you're writing an HTTP client and an HTML parser from scratch? Why?
> but how to deal with these page links which contain java scripts?
You either write a JavaScript interpreter from scratch or you use a
preexisting library (which you should probably be doing for the other parts
of your project).
> by invoking jvm? and how?
Java and JavaScript are different languages. You don't use a Java Virtual
Machine to interpret JavaScript.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
[Back to original message]
|