pgsql-http
pgsql-http copied to clipboard
Wishlist: Multipart Formpost (MIMEPOST)
Use case: Sending emails via Mailgun.
https://documentation.mailgun.com/en/latest/user_manual.html#sending-via-api https://curl.haxx.se/libcurl/c/curl_mime_init.html
Interesting. This feels like it's drifting into a pgsql-mime extension. There's a lot of stuff inside once you start unwrapping this onion.
So, thinking about this and wondering what the API should look like... feels kind of like a key/value thing, maybe like the http_header[] tuple array? so optionally pass the data element of a POST as a mime[] array?
Yes, that would be a nice API.