Some more HTTP POST evaluation. Still broken! (0.39.10)
This commit is contained in:
parent
e240768c26
commit
5222f79434
5 changed files with 176 additions and 26 deletions
12
examples/snippets/parse_test2.fun
Executable file
12
examples/snippets/parse_test2.fun
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env fun
|
||||
|
||||
#include <net/cgi.fun>
|
||||
|
||||
cgi = CGI()
|
||||
pairs = cgi._parse_urlencoded("a=1&b=2&c=3")
|
||||
i = 0
|
||||
n = len(pairs)
|
||||
while (i < n)
|
||||
p = pairs[i]
|
||||
print(to_string(p[0]) + "=" + to_string(p[1]))
|
||||
i = i + 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue