Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Don't ask to ask, just ask
 
PerlMonks  

Re: Perl and Javascript

by Corion (Pope)
on Sep 27, 2011 at 06:48 UTC ( #928020=note: print w/ replies, xml ) Need Help??


in reply to Perl and Javascript

Have you looked at WWW::Mechanize::Firefox? If you cannot reverse engineer what sso.gen does, you will have to use a Javascript interpreter.


Comment on Re: Perl and Javascript
Download Code
Re^2: Perl and Javascript
by mattdeans (Novice) on Sep 27, 2011 at 07:00 UTC
    It seems WWW::Mechanize::Firefox need firefox install? I cannot, its a server.
    Is JE - Pure-Perl ECMAScript (JavaScript) Engine a Javascript interpreter?

      If it is a server, then yes, you will have to make-do with the other solutions (Javascript). I'm currently working on getting nodejs to do the same as WWW::Mechanize::Firefox does, except without the need for a display, but that is still very much a work in progress, so I recommend you look at the other methods.

      Alternatively, you could write a small Javascript wrapper for your sso.gen script and call it via node sso.gen-wrapper.js $ARG1 $ARG2 via backticks.

        Oh, when I mean a server, I mean I work in a server, that is , it has no X windows system, so I cannot install firefox.
        My perl script is a client.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928020]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-04-16 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (434 votes), past polls