multipart/form-data

8 views
Skip to first unread message

Craig Steddy

unread,
Dec 2, 2016, 12:38:45 AM12/2/16
to Webscript.io
Hi,

Is multipart/form-data (a la Python Requests ...,files=) supported on http.request POSTs?

Cheers,

Craig

Steve Marx

unread,
Dec 2, 2016, 2:34:00 AM12/2/16
to Craig Steddy, Webscript.io
It's not documented, so I can't promise it will always work this way, but something like this should work:

local response = http.request {
method='POST',
files={
foo={'bar.txt', 'this is bar', 'text/plain'}
},
}


--
You received this message because you are subscribed to the Google Groups "Webscript.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webscriptio+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Craig Steddy

unread,
Dec 2, 2016, 5:52:53 AM12/2/16
to Steve Marx, Webscript.io
champion. thanks.
Reply all
Reply to author
Forward
0 new messages