How can I get form data for perl6?

a form like this:

<form action='1.php' method='post'>
u:<input name='u' type='text'/><br />
p:<input name='p' type='password'/><br />
<input value='submit' type='submit'/>
</form>

and how can I automatically get form data using perl6? lkie this:

my $form = xxx($the_form_url)

and the result will be as follows:

$form.Str
#output like that:
#u=username&p=password&submit=submit

are there modules for printing in perl6? you are welcome..

+4
source share
1 answer

Bailador is really good advice.

But if you need a more CGI line approach, take a look at SCGI; https://github.com/supernovus/SCGI

+1
source

Source: https://habr.com/ru/post/1680980/


All Articles