LTA error message for URL without schema #16

Closed
bbkr opened this Issue Aug 24, 2012 · 1 comment

Projects

None yet

2 participants

bbkr commented Aug 24, 2012
$  perl6 -e 'use LWP::Simple; say LWP::Simple.post("localhost")';
No such method 'lc' for invocant of type 'Any'
  in method scheme at /Users/bbkr/Developer/Perl6/rakudo/install/lib/parrot/4.6.0/languages/perl6/lib/URI.pm:138
  in method parse_url at /Users/bbkr/Developer/Perl6/rakudo/install/lib/parrot/4.6.0/languages/perl6/lib/LWP/Simple.pm:211
  in method request_shell at /Users/bbkr/Developer/Perl6/rakudo/install/lib/parrot/4.6.0/languages/perl6/lib/LWP/Simple.pm:46
  in method post at /Users/bbkr/Developer/Perl6/rakudo/install/lib/parrot/4.6.0/languages/perl6/lib/LWP/Simple.pm:39
  in block <anon> at -e:1
Owner
cosimo commented Oct 22, 2015

Current master complains because URL must be absolute, but using http://localhost seems to work fine for me:

$ perl6 -Ilib -e 'use LWP::Simple; say LWP::Simple.post("http://localhost")';
<!DOCTYPE html>
<body>
<pre>
ZORK I: The Great Underground Empire
Copyright (c) 1981, 1982, 1983 Infocom, Inc. All rights reserved.
ZORK is a registered trademark of Infocom, Inc.
Revision 88 / Serial number 840726




West of House

You are standing in an open field west of a white house, with a boarded front door.
There is a small mailbox here.

&gt;
</pre>
</body>
</html>
@cosimo cosimo closed this Oct 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment