1
0
Fork 0
forked from fun/fun

Some more HTTP POST evaluation. Still broken! (0.39.10)

This commit is contained in:
Johannes Findeisen 2026-03-26 00:36:52 +01:00
commit 5222f79434
5 changed files with 176 additions and 26 deletions

View 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