Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Clicking nameless buttons with WWW::Mechanize

by tphyahoo (Vicar)
on Mar 15, 2005 at 12:24 UTC ( [id://439608]=note: print w/replies, xml ) Need Help??


in reply to Clicking nameless buttons with WWW::Mechanize

Longshot, but did you install Crypt::SSLeay? I noticed you're trying for an https url, and you can't do post requests with LWP without Crypt::SSLeay (which I think in turn requires Openssl, at least in my case - windows, ActiveState).

This caused me no end of aggravation, because perl didn't give real good feedback that that was the problem, I had to dink around in Data::Dumper. Seems that a lot of people get bitten by this.

So, just in case.

  • Comment on Re: Clicking nameless buttons with WWW::Mechanize

Replies are listed 'Best First'.
Re^2: Clicking nameless buttons with WWW::Mechanize
by bobf (Monsignor) on Mar 15, 2005 at 15:08 UTC

    No, I do not have Crypt::SSLeay installed - that never occurred to me. I am on Windows and I'm using ActiveState, so thanks for the Openssl comment, too.

    I'm starting to think I misinterpreted the error message. Thanks for an excellent suggestion!

    I'll update this node as soon as I try it.

    Update: I just got Openssl installed. I tried using PPM to install Crypt::SSLeay, but when I first installed perl I foolishly installed it in 'Program Files' and the Crypt::SSLeay installation choked on the space.

    Update: Intrepid brought to my attention the reloc_perl utility (included in ActiveState perl), which will relocate a perl installation to a new directory. I moved the installation out of the 'Program Files' directory and installed Crypt::SSLeay. However, I'm still getting an error when I try to submit the form:

    Unexpected field value http://preview.pharmgkb.org/views/index.jsp at +(eval 5) line 1
    I'm baffled.

    Update: I tracked this error down. Please see the thread "Unexpected field value" error with WWW::Mechanize for more information.

      Aha.

      Well, I remember having trouble installing openssl as well, it was kind of confusing since there seems to be more than one distribution for windows. I finally got it working installing from ShiningLight Openssl.

      After installing that, check out

      http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/Repository

      And follow the tips there to do.....

      ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/Crypt-SSLeay.ppd

      Gotta use uwinnipeg, since this isn't included in the standard activestate repositories, for reasons that probably have to do with exporting encryption or something, but I'm not sure.

      I think I tried making it myself with nmake, as well, and no dice. In the end it only worked with the above ppm install.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-19 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found