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

Sorry forgot my e-mail address ... Asier.Arzuaga@andelconsulting.com I've been pulling my hair out over this for quite some time. The network connectivity and firewall rules seem OK. Any clue on that ? $ /opt/perl/bin/lwp-request -x 'https://ri2.rois.com/cgi-bin/GetSessionId.cgi?cmd=get_session_id&uid=111111&uip=1.1.1.1&gid=nlbj2' LWP::UserAgent::new: () LWP::UserAgent::request: () LWP::UserAgent::simple_request: GET https://ri2.rois.com/cgi-bin/GetSessionId.cgi?cmd=get_session_id&uid=111111&uip=1.1.1.1&gid=nlbj2 LWP::UserAgent::_need_proxy: Not proxied LWP::Protocol::http::request: () LWP::UserAgent::request: Simple result: Internal Server Error An Error Occurred thank you very much in advance!!

Replies are listed 'Best First'.
Re: lwp-request
by tilly (Archbishop) on Sep 28, 2000 at 15:31 UTC
    Do you have the correct name and password for that site?

    If this is for a script you can use the form of a url that goes: https://name:password@www.whatever.com/and/some.html to get the name and password in the URL. (You can also pass then as command-line arguments with -C.)

      Thank you very much tilly. I appreciate your help. Let me explain you a bit more. I have the right name & password. But, for some reason when I require this /opt/perl/bin/lwp-request 'http://www.perlmonks.org' I have no problems. I have probelms when I do: /opt/perl/bin/lwp-request 'https://ri2.rois.com/cgi-bin/GetSessionId.cgi?cmd=get_session_id&uid=111111&uip=1.1.1.1&gid=nlbj2' Also, I tried the way that you told me & I get the same error messages. For your info, if I try this 'https://ri2.rois.com/cgi-bin/GetSessionId.cgi?cmd=get_session_id&uid=111111&uip=1.1.1.1&gid=nlbj2' from my browser I have no problems ... Thank you very much!!
        Then I suspect the difference is http vs https. Do you have Net::SSLeay installed?

        A minor note. Should you need a proxy, you will probably want https_proxy set in your environment.

Re: lwp-request
by Jonathan (Curate) on Sep 28, 2000 at 15:34 UTC
    Not too sure what you mean but it may similar to a recent node look here


    "We are all prompted by the same motives, all deceived by the same fallacies, all animated by hope, obstructed by danger, entangled by desire, and seduced by pleasure." - Samuel Johnson