cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Little problem on the libcurl.dll generation

From: Wham Bang <wham_bang_at_yahoo.com>
Date: Fri, 24 Aug 2001 06:49:36 -0700 (PDT)

Hi all,

--- Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> This question was ventilated before just a few weeks ago. AFAIK,
> there's no easily available parser for javascript (my suggestion,
> if anyone would ever like to walk that narrow path, is still to
> extract the one Mozilla is using).
>

Yes, that file *is* javascript _code_ so the only option is to have
a javascript interpreter. We ran into this issue on a project at
my previous employer and we did exactly what you suggested - used
the javascript interpreter from Mozilla. I wasn't the one who
did it, but if I remember correctly, there was a separate package
for the javascript interpreter, and it turned out to be way easier
than we had originally anticipated.

So our C++ code was able to feed a URL to the javascript code (run
by the interpreter) and get back the proxy to use for any particular
URL.

Hope this helps,

=====
Wham! <wham_bang_at_yahoo.com>

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
Received on 2001-08-24