[interchange-biz] need a globasub routine to get a page from secure server.
sung
sungho63@yahoo.com
Thu Dec 19 16:01:00 2002
To interchange developers:
I need a globalsub routine that gets a page from a secure server.
Please email me if you can help and also a quote.
You can solve the problem described below or
write me a new routine from scratch.
Thanks
Steve
sungho63@yahoo.com
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.
--- 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.yahoo.com', 443, '/',
> > 9 make_headers(
> > 10 'User-Agent' => 'Cryptozilla/5.0b1',
> > 11 'Referer' => 'https://www.yahoo.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:
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com