pgsql-http icon indicating copy to clipboard operation
pgsql-http copied to clipboard

Wishlist: Multipart Formpost (MIMEPOST)

Open purpleKarrot opened this issue 7 years ago • 3 comments

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

purpleKarrot avatar Feb 13 '18 21:02 purpleKarrot

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.

pramsey avatar Feb 13 '18 21:02 pramsey

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?

pramsey avatar May 25 '18 20:05 pramsey

Yes, that would be a nice API.

purpleKarrot avatar Jun 21 '18 11:06 purpleKarrot