[Toybox] [PATCH 0/1] Added basic post-data support to wget.c

Moritz C. Weber mo.c.weber at gmail.com
Sat Mar 26 09:59:03 PDT 2022


Dear all,
I wrote the simple patch to enable wget for POST requests with an --post-data option. Sadly, patched wget and git HEAD segfault on my current build machine.

So, testing can and will be improved, but I mainly send this patch to learn the process. And I think the change is trivial, if I got everything right.

I am not used to write C and I am still learning the toybox infrastructure. So I would be happy to get feedback what to do better.

The long-term purpose for this patch would be to refactor the wget logic into the library, so that I could reuse GET and POST in a git toy, which I plan.

Best regards,
Moritz

Moritz C. Weber (1):
  Added basic post-data support

 toys/pending/wget.c | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

-- 
2.20.1



More information about the Toybox mailing list