UNPKG
httpsnippet
Version:
49fe515e1db87b997d01debaf271763372ed4059 (3.0.3)
5b4474df44564aae889423ab26e80d41f99034df (3.0.9)
63650f3f6a921e4a617316ba12f14904d9af4b76 (3.0.4)
723581e1daeb94c5d2f59044ee6d26ab2fbb8435 (3.0.6)
889ef62970046ff22597607bf05f5b919cce302c (3.0.7)
8a1bc90fdcacf9a2ba9e0dde3f75df7765b218c1 (3.0.8)
f1450b121b991ef4751c7f25c7f0f9254ca8f08b (3.0.2)
fbd23b56d9065d88476c9585dc4a7fd77ab59edd (3.0.5)
latest (3.0.1)
3.0.9
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.0.0
1.25.0
1.24.0
1.23.0
1.22.0
1.21.0
1.20.0
1.19.1
1.19.0
1.18.0
1.16.7
1.16.6
1.16.5
1.16.4
1.16.3
1.16.2
1.16.0
1.15.0
1.14.1
1.14.0
1.13.0
1.12.1
1.12.0
1.11.1
1.11.0
1.10.0
1.9.0
1.8.0
1.7.0
1.6.0
1.4.3
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.0
1.0.0-beta.10
1.0.0-beta.9
1.0.0-beta.8
1.0.0-beta.7
1.0.0-beta.6
1.0.0-beta.5
1.0.0-beta.4
1.0.0-beta.3
1.0.0-beta.2
1.0.0-beta.1
1.0.0-beta
HTTP Request snippet generator for *most* languages
github.com/Kong/httpsnippet
Kong/httpsnippet
httpsnippet
/
dist
/
targets
/
node
/
unirest
/
fixtures
/
multipart-form-data-no-params.js
12 lines
(11 loc)
•
272 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
"use strict"
;
var
unirest =
require
(
'unirest'
);
var
req =
unirest
(
'POST'
,
'http://mockbin.com/har'
); req.
headers
({
'Content-Type'
:
'multipart/form-data'
}); req.
end
(
function
(
res
) {
if
(res.
error
)
throw
new
Error
(res.
error
);
console
.
log
(res.
body
); });