May 10, 2023

The std.net.curl module provides these functions:

T[] post(T = char, PostUnit)(const(char)[] url, const(PostUnit)[] postData, HTTP conn = HTTP())
T[] post(T = char)(const(char)[] url, string[string] postDict, HTTP conn = HTTP())

How can I use it if I want to transfer a file with some name? (No problem with regular text.)