Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: www::mechanize executable

by Anonymous Monk
on Oct 18, 2012 at 22:45 UTC ( [id://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>

Replies are listed 'Best First'.
Re^2: www::mechanize executable
by Corion (Patriarch) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://999827]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-20 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found