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

Re: www::mechanize executable

by Anonymous Monk
on Oct 18, 2012 at 22:45 UTC ( #999827=note: print w/ replies, xml ) Need Help??


in reply to www::mechanize executable

Hello again monks!

I debugged as much as I could and found that the problem is my website type I believe. Because if I use www.google.com as my URL, my executable takes the information needed and saves it in the .txt file

Therefore do any of you have an idea why the website type makes a difference when my script is compressed to an .exe? (if i compress the script with the url=www.google.com, it works fine<\p>


Comment on Re: www::mechanize executable
Re^2: www::mechanize executable
by Corion (Pope) on Oct 19, 2012 at 08:31 UTC

    Have you checked with URLs that need HTTPS?

      Hello Corion, Yes I have noticed that the problem is only related to sites that have authentification. So for example hotmail.com (https://hotmail.com) will not work either. What I can't understand is that the script works fine whichever site I choose to parse.

      But when I package the script it only works with none secured websites. For example www.google.com will get parsed by the packaged script (.exe) I debugged and the process stops exactly when I call the https site i.e. at line:

      # Connect to the login page my $response = $bot->get( 'https://anyURLwithCredentials.com' );

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-10-25 20:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (148 votes), past polls