Pav has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, Pls help me with a sample script to login to cqweb and run a query and get the results. I tried doing this this LWP and mechanize however I seem to be only getting the front login page which looks like is in javascript. Pls pls help.. Thanks a lot Pav
  • Comment on A sample script to login to cqweb and run a query

Replies are listed 'Best First'.
Re: A sample script to login to cqweb and run a query
by choroba (Cardinal) on Jul 31, 2014 at 16:48 UTC
    I don't see any login options at cqweb. It might also be my Japanese is very weak so I can't recognise it.

    Moreover, LWP and WWW::Mechanize don't handle Javascript. Have you tried searching for similar questions?

    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      Thank you so much for replying. Currently i have access to a CQWeb server which happens to ask me to login and only then I can run a query. I have broswed the web for 3 continous days for something to help me with this however couldnt find any scripts for cqweb in perl.

        Maybe you noticed that some of the words in my previous reply are underlined, and potentially displayed in "blue".

        Have you clicked these so-called "links"?

        Did you search Google or DuckDuckGo?

        What problems did you encounter when attempting the solutions described in the search results?

Re: A sample script to login to cqweb and run a query
by Corion (Patriarch) on Jul 31, 2014 at 16:48 UTC

    Have you read what the WWW::Mechanize documentation has to say about Javascript?

    Have you investigated the alternatives? Mechanize turns up some results.

      Thank you Corion for replying. I have gone through the WWW::Mechanize docs . With the help of that I tried achieving this but i only seem to get the source code of the login page .:(
Re: A sample script to login to cqweb and run a query
by AppleFritter (Vicar) on Jul 31, 2014 at 16:53 UTC