[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] problem with using SSLeay in globalsub
error.log says:
Safe: Undefined
subroutine &Net::SSLeay::do_https2 called at blib/lib/Net/SSLeay.pm (autosplit into
blib/lib/auto/Net/SSLeay/get_h
ttps.al) line 1991.
I used cnn.com as a test since it was easy to type.
I should have used something else even in test mode. :>)
--- Kevin Walsh <kevin@cursor.biz> wrote:
> sung [sungho63@yahoo.com] wrote:
> >
> > I wrote this globalsub routine to get a webapge from another website.
> > This program does not work from line 7. It does not get the page.
> >
> > Can someone see what i am doing wrong?
> > Net::SSLeay is installed fine.
> > Thanks in advance,
> > Steve
> >
> >
> > 1 GlobalSub <<EOS
> > 2
> > 3 sub getpage{
> > 4
> > 5 use Net::SSLeay qw(get_https post_https sslcat make_headers make_form);
> > 6
> > 7 ($page)
> > 8 = get_https('www.cnn.com', 443, '/',
> > 9 make_headers(
> > 10 'User-Agent' => 'Cryptozilla/5.0b1',
> > 11 'Referer' => 'https://www.cnn.com'
> > 12 ));
> > 13 return($page);
> > 14
> > 15 }
> > 16 EOS
> >
> Did your error.log file not show an error message? Without an
> error message to help the diagnosis, the only thing I can think of
> is that line 7 should look more like this:
>
> my ($page)
>
> I assume that CNN have issued full written permission for you to use
> their copyrighted content on your website, and that you have a valid
> reason to set the referrer to something other than your own site.
>
> >
> > Do you Yahoo!?
> >
> Only when I'm not feeling very well.
>
> --
> _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
> _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
> _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
> _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com